diff options
author | Peter Xu <peterx@redhat.com> | 2017-06-27 12:10:14 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-06-28 11:18:38 +0200 |
commit | 5272298c48eb3a01c41a7822e6303d0a0a05f004 (patch) | |
tree | 5523c54e95b24105a355a11b9e835fe1e4e4c80c /include | |
parent | e5cb7e7677010f529d3f0f9dcdb385dea9446f8d (diff) | |
download | qemu-5272298c48eb3a01c41a7822e6303d0a0a05f004.zip qemu-5272298c48eb3a01c41a7822e6303d0a0a05f004.tar.gz qemu-5272298c48eb3a01c41a7822e6303d0a0a05f004.tar.bz2 |
migration: move global_state.optional out
Put it into MigrationState then we can use the properties to specify
whether to enable storing global state.
Removing global_state_set_optional() since now we can use HW_COMPAT_2_3
for x86/power, and AccelClass.global_props for Xen.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1498536619-14548-6-git-send-email-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/compat.h | 4 | ||||
-rw-r--r-- | include/migration/global_state.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h index 26cd585..a506a74 100644 --- a/include/hw/compat.h +++ b/include/hw/compat.h @@ -181,6 +181,10 @@ .driver = TYPE_PCI_DEVICE,\ .property = "x-pcie-lnksta-dllla",\ .value = "off",\ + },{\ + .driver = "migration",\ + .property = "store-global-state",\ + .value = "off",\ }, #define HW_COMPAT_2_2 \ diff --git a/include/migration/global_state.h b/include/migration/global_state.h index 90faea7..d307de8 100644 --- a/include/migration/global_state.h +++ b/include/migration/global_state.h @@ -16,7 +16,6 @@ #include "sysemu/sysemu.h" void register_global_state(void); -void global_state_set_optional(void); int global_state_store(void); void global_state_store_running(void); bool global_state_received(void); |