[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/17] s390x/event-facility: add support for live mi
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PATCH 13/17] s390x/event-facility: add support for live migration |
Date: |
Tue, 25 Feb 2014 11:05:31 +0100 |
From: Heinz Graalfs <address@hidden>
Add support for live migration using VMStateDescription.
Signed-off-by: Heinz Graalfs <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
---
hw/s390x/event-facility.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
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;
--
1.8.4.2
- [Qemu-devel] [PATCH 09/17] s390x/sclp: Add missing checks to SCLP handler, (continued)
- [Qemu-devel] [PATCH 09/17] s390x/sclp: Add missing checks to SCLP handler, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 10/17] s390x/sclp: Fixed setting of condition code register, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 16/17] s390-ccw.img: Fix sporadic errors with ccw boot image - initialize css, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 03/17] s390x/async_pf: Check for apf extension and enable pfault, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 08/17] s390x/sclp: Fixed the size of sccb and code parameter, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 02/17] s390x/kvm: implement floating-interrupt controller device, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 17/17] s390-ccw.img: new binary rom to match latest fixes, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 12/17] s390x/event-facility: code restructure, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 05/17] s390x/virtio-hcall: Add range check for hypervisor call, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 11/17] s390x/event-facility: some renaming, Christian Borntraeger, 2014/02/25
- [Qemu-devel] [PATCH 13/17] s390x/event-facility: add support for live migration,
Christian Borntraeger <=