xemu/include/migration
Peter Xu e5cb7e7677 migration: let MigrationState be a qdev
Let the old man "MigrationState" join the object family. Direct benefit
is that we can start to use all the property features derived from
current QDev, like: HW_COMPAT_* bits, command line setup for migration
parameters (so will never need to set them up each time using HMP/QMP,
this is really, really attractive for test writters), etc.

I see no reason to disallow this happen yet. So let's start from this
one, to see whether it would be anything good.

Now we init the MigrationState struct statically in main() to make sure
it's initialized after global properties are applied, since we'll use
them during creation of the object.

No functional change at all.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1498536619-14548-5-git-send-email-peterx@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2017-06-28 11:18:38 +02:00
..
blocker.h migration: Create migration/blocker.h 2017-05-17 12:04:59 +02:00
colo.h migration: Remove unneeded includes 2017-06-14 11:10:19 +02:00
cpu.h migration: Add VMSTATE_UINTTL_2DARRAY() 2017-05-04 09:39:01 +09:00
failover.h COLO: Implement the process of failover for primary VM 2016-10-30 15:17:39 +05:30
global_state.h migration: create global_state.c 2017-06-13 11:00:45 +02:00
misc.h migration: let MigrationState be a qdev 2017-06-28 11:18:38 +02:00
qemu-file-types.h migration: Split qemu-file.h 2017-06-01 18:49:22 +02:00
register.h migration: Fix compilation with older compilers 2017-06-14 11:08:55 +02:00
snapshot.h migration: Create include for migration snapshots 2017-06-01 18:49:23 +02:00
vmstate.h migration: Fix compilation with older compilers 2017-06-14 11:08:55 +02:00