From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkbJx-000671-5p for qemu-devel@nongnu.org; Wed, 14 May 2014 11:42:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkbJn-00072Z-U9 for qemu-devel@nongnu.org; Wed, 14 May 2014 11:42:17 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:54874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkbJn-00072U-Kq for qemu-devel@nongnu.org; Wed, 14 May 2014 11:42:07 -0400 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 May 2014 16:42:06 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 7678C17D8042 for ; Wed, 14 May 2014 16:43:12 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4EFg3hj66125854 for ; Wed, 14 May 2014 15:42:03 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 s4EFg3gh020321 for ; Wed, 14 May 2014 09:42:03 -0600 From: Greg Kurz Date: Wed, 14 May 2014 17:42:00 +0200 Message-ID: <20140514154200.10746.48339.stgit@bahia.local> In-Reply-To: <20140514154130.10746.1412.stgit@bahia.local> References: <20140514154130.10746.1412.stgit@bahia.local> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH RFC 4/8] virtio-scsi: migrate subsections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Anthony Liguori , "Michael S. Tsirkin" , Stefan Hajnoczi , Amit Shah , Paolo Bonzini Cc: Juan Quintela , Fam Zheng , Alexander Graf , Andreas =?utf-8?q?F=C3=A4rber?= , qemu-devel@nongnu.org Signed-off-by: Greg Kurz --- hw/scsi/virtio-scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index b0d7517..989e4ed 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -471,6 +471,7 @@ static void virtio_scsi_save(QEMUFile *f, void *opaque) { VirtIODevice *vdev = VIRTIO_DEVICE(opaque); virtio_save(vdev, f); + virtio_save_subsections(vdev, f); } static int virtio_scsi_load(QEMUFile *f, void *opaque, int version_id) @@ -482,7 +483,7 @@ static int virtio_scsi_load(QEMUFile *f, void *opaque, int version_id) if (ret) { return ret; } - return 0; + return virtio_load_subsections(vdev, f); } static void virtio_scsi_push_event(VirtIOSCSI *s, SCSIDevice *dev,