diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2013-12-18 13:59:57 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-02-27 09:51:25 +0100 |
commit | 6fbef18a4c8b3cd9c3da4772ed5ddaec9be06fac (patch) | |
tree | 7a197e5e0675405b8d41ae835511dfa17e240010 /hw/s390x | |
parent | 477a72a1eff40639761e103f5b7652af7746c48e (diff) | |
download | qemu-6fbef18a4c8b3cd9c3da4772ed5ddaec9be06fac.zip qemu-6fbef18a4c8b3cd9c3da4772ed5ddaec9be06fac.tar.gz qemu-6fbef18a4c8b3cd9c3da4772ed5ddaec9be06fac.tar.bz2 |
s390x/event-facility: add support for live migration
Add support for live migration using VMStateDescription.
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/event-facility.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c index 8ad2dc4..5b6d5c6 100644 --- a/hw/s390x/event-facility.c +++ b/hw/s390x/event-facility.c @@ -315,6 +315,17 @@ static void command_handler(SCLPEventFacility *ef, SCCB *sccb, uint64_t code) } } +static const VMStateDescription vmstate_event_facility = { + .name = "vmstate-event-facility", + .version_id = 0, + .minimum_version_id = 0, + .minimum_version_id_old = 0, + .fields = (VMStateField[]) { + VMSTATE_UINT32(receive_mask, SCLPEventFacility), + VMSTATE_END_OF_LIST() + } +}; + static int init_event_facility(SCLPEventFacility *event_facility) { DeviceState *sdev = DEVICE(event_facility); @@ -352,6 +363,7 @@ static void init_event_facility_class(ObjectClass *klass, void *data) SCLPEventFacilityClass *k = EVENT_FACILITY_CLASS(dc); dc->reset = reset_event_facility; + dc->vmsd = &vmstate_event_facility; k->init = init_event_facility; k->command_handler = command_handler; k->event_pending = event_pending; |