From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMEr2-0002mF-EM for qemu-devel@nongnu.org; Wed, 18 Sep 2013 06:19:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMEqq-0008VK-KV for qemu-devel@nongnu.org; Wed, 18 Sep 2013 06:19:28 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:41550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMEqq-0008TT-AY for qemu-devel@nongnu.org; Wed, 18 Sep 2013 06:19:16 -0400 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Sep 2013 11:19:13 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id BF0351B0805F for ; Wed, 18 Sep 2013 11:19:12 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8IAIx7D64487636 for ; Wed, 18 Sep 2013 10:18:59 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8IAJBtf012318 for ; Wed, 18 Sep 2013 04:19:11 -0600 From: Christian Borntraeger Date: Wed, 18 Sep 2013 12:19:25 +0200 Message-Id: <1379499572-49737-5-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1379499572-49737-1-git-send-email-borntraeger@de.ibm.com> References: <1379499572-49737-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PATCH 04/11] s390/event-facility: Add code to support live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Christian Borntraeger , Jens Freimann , Heinz Graalfs , qemu-devel From: Heinz Graalfs This patch adds the necessary life migration pieces to the event facility by using the vmstate_register. Signed-off-by: Heinz Graalfs Signed-off-by: Christian Borntraeger --- hw/s390x/event-facility.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c index a3aceef..225b42c 100644 --- a/hw/s390x/event-facility.c +++ b/hw/s390x/event-facility.c @@ -313,6 +313,17 @@ static void command_handler(SCLPEventFacility *ef, SCCB *sccb, uint64_t code) } } +static const VMStateDescription vmstate_eventfacility = { + .name = "sclpeventfacility", + .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(S390SCLPDevice *sdev) { SCLPEventFacility *event_facility; @@ -335,7 +346,7 @@ static int init_event_facility(S390SCLPDevice *sdev) } qdev_init_nofail(quiesce); - return 0; + return vmstate_register(NULL, 0, &vmstate_eventfacility, sdev->ef); } static void init_event_facility_class(ObjectClass *klass, void *data) -- 1.8.3.1