qemu-e2k/migration
Eric Auger 9a85e4b8f6 migration: Support gtree migration
Introduce support for GTree migration. A custom save/restore
is implemented. Each item is made of a key and a data.

If the key is a pointer to an object, 2 VMSDs are passed into
the GTree VMStateField.

When putting the items, the tree is traversed in sorted order by
g_tree_foreach.

On the get() path, gtrees must be allocated using the proper
key compare, key destroy and value destroy. This must be handled
beforehand, for example in a pre_load method.

Tests are added to test save/dump of structs containing gtrees
including the virtio-iommu domain/mappings scenario.

Signed-off-by: Eric Auger <eric.auger@redhat.com>

Message-Id: <20191011121724.433-1-eric.auger@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  uintptr_t fixup for test on 32bit
2019-10-11 17:52:31 +01:00
..
block-dirty-bitmap.c
block.c block: Remove unused masks 2019-09-16 14:48:30 +02:00
block.h
channel.c
channel.h
colo-failover.c
colo.c
exec.c
exec.h
fd.c
fd.h
global_state.c
Makefile.objs
migration.c migration: pass in_postcopy instead of check state again 2019-10-11 14:31:27 +01:00
migration.h
page_cache.c
page_cache.h
postcopy-ram.c migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup 2019-10-11 14:59:58 +01:00
postcopy-ram.h migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup 2019-10-11 14:59:58 +01:00
qemu-file-channel.c
qemu-file-channel.h
qemu-file.c
qemu-file.h
qjson.c
qjson.h migration: fix vmdesc leak on vmstate_save() error 2019-09-25 15:51:19 +01:00
ram.c migration/multifd: pages->used would be cleared when attach to multifd_send_state 2019-10-11 15:02:06 +01:00
ram.h
rdma.c migration: Use automatic rcu_read unlock in rdma.c 2019-10-11 14:20:01 +01:00
rdma.h
savevm.c migration/postcopy: check PostcopyState before setting to POSTCOPY_INCOMING_RUNNING 2019-10-11 15:00:16 +01:00
savevm.h
socket.c
socket.h
tls.c
tls.h
trace-events migration: Support gtree migration 2019-10-11 17:52:31 +01:00
vmstate-types.c migration: Support gtree migration 2019-10-11 17:52:31 +01:00
vmstate.c
xbzrle.c
xbzrle.h