Received: from eggs.gnu.org ([2001:4830:134:3::10]:42523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBp2N-000182-La for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBp2A-0005jG-45 for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:23 -0500 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:46994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBp29-0005io-QV for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:10 -0500 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Feb 2014 17:16:09 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id A71C0219005E for ; Fri, 7 Feb 2014 17:16:04 +0000 (GMT) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s17HFsU03604750 for ; Fri, 7 Feb 2014 17:15:54 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s17HG6Xb017951 for ; Fri, 7 Feb 2014 12:16:06 -0500 From: Christian Borntraeger Date: Fri, 7 Feb 2014 18:16:24 +0100 Message-Id: <1391793385-46694-16-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1391793385-46694-1-git-send-email-borntraeger@de.ibm.com> References: <1391793385-46694-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [Patch/RFC 15/16] s390x/event-facility: add support for live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Heinz Graalfs , Thomas Huth , Alexander Graf , Dominik Dingel , Christian Borntraeger , Jens Freimann , Paolo Bonzini , Richard Henderson From: Heinz Graalfs Add support for live migration using VMStateDescription. Fold this into final patch adding Live Migration code for SCLP Event Facility. 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