migration: move global_state.optional out
commit5272298c48eb3a01c41a7822e6303d0a0a05f004
authorPeter Xu <peterx@redhat.com>
Tue, 27 Jun 2017 04:10:14 +0000 (27 12:10 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 28 Jun 2017 09:18:38 +0000 (28 11:18 +0200)
tree5523c54e95b24105a355a11b9e835fe1e4e4c80c
parente5cb7e7677010f529d3f0f9dcdb385dea9446f8d
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>
hw/i386/pc_piix.c
hw/ppc/spapr.c
hw/xen/xen-common.c
include/hw/compat.h
include/migration/global_state.h
migration/global_state.c
migration/migration.c
migration/migration.h