From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEtR-0007tR-I5 for qemu-devel@nongnu.org; Tue, 25 Feb 2014 05:05:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIEtI-0005HU-Bx for qemu-devel@nongnu.org; Tue, 25 Feb 2014 05:05:41 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:45945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEtH-0005HL-U5 for qemu-devel@nongnu.org; Tue, 25 Feb 2014 05:05:32 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 25 Feb 2014 10:05:31 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 005B21B08051 for ; Tue, 25 Feb 2014 10:05:08 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s1PA5FMT33423504 for ; Tue, 25 Feb 2014 10:05:15 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s1PA5LST027813 for ; Tue, 25 Feb 2014 03:05:26 -0700 From: Christian Borntraeger Date: Tue, 25 Feb 2014 11:05:31 +0100 Message-Id: <1393322735-31277-14-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1393322735-31277-1-git-send-email-borntraeger@de.ibm.com> References: <1393322735-31277-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PATCH 13/17] s390x/event-facility: add support for live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , Peter Maydell Cc: Heinz Graalfs , qemu-devel , Alexander Graf , Christian Borntraeger , Jens Freimann , Cornelia Huck , Paolo Bonzini , Richard Henderson From: Heinz Graalfs Add support for live migration using VMStateDescription. Signed-off-by: Heinz Graalfs Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- 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