Re: [Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:57 PM, Alexander Graf wrote: > > On 22.05.14 12:53, Alexey Kardashevskiy wrote: >> This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. >> This implements a qemu_hash_init() wrapper to save key/value sizes. >> >> Signed-off-by: Alexey Kardashevskiy >> --- >

Re: [Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexander Graf
On 22.05.14 12:53, Alexey Kardashevskiy wrote: This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. This implements a qemu_hash_init() wrapper to save key/value sizes. Signed-off-by: Alexey Kardashevskiy --- include/migration/vmstate.h | 10 + include/qemu-com

[Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexey Kardashevskiy
This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. This implements a qemu_hash_init() wrapper to save key/value sizes. Signed-off-by: Alexey Kardashevskiy --- include/migration/vmstate.h | 10 + include/qemu-common.h | 13 +++ vmstate.c