Received: from eggs.gnu.org ([2001:4830:134:3::10]:49729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFm9C-0001rW-P7 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFm98-0004e5-K7 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:41:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36357 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFm98-0004e1-DO for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:41:02 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5MHdH3W002926 for ; Wed, 22 Jun 2016 13:41:02 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0b-001b2d01.pphosted.com with ESMTP id 23qd1hbfuk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 22 Jun 2016 13:41:01 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Jun 2016 18:41:00 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id A648917D8042 for ; Wed, 22 Jun 2016 18:42:14 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5MHevcf16777492 for ; Wed, 22 Jun 2016 17:40:57 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 u5MHevEx004375 for ; Wed, 22 Jun 2016 13:40:57 -0400 Date: Wed, 22 Jun 2016 19:40:53 +0200 From: Cornelia Huck In-Reply-To: <1466536447-30146-5-git-send-email-dgilbert@redhat.com> References: <1466536447-30146-1-git-send-email-dgilbert@redhat.com> <1466536447-30146-5-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160622194053.416a7401.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 04/13] virtio-scsi: Wrap in vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, mst@redhat.com, amit.shah@redhat.com, quintela@redhat.com, kraxel@redhat.com On Tue, 21 Jun 2016 20:13:58 +0100 "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Forcibly convert it to a vmstate wrapper; proper conversion > comes later. > > Signed-off-by: Dr. David Alan Gilbert > --- > hw/scsi/virtio-scsi.c | 21 ++++++--------------- > 1 file changed, 6 insertions(+), 15 deletions(-) > > diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c > index 71d09d3..6e518f4 100644 > --- a/hw/scsi/virtio-scsi.c > +++ b/hw/scsi/virtio-scsi.c > @@ -663,7 +663,7 @@ static void virtio_scsi_reset(VirtIODevice *vdev) > /* The device does not have anything to save beyond the virtio data. > * Request data is saved with callbacks from SCSI devices. > */ > -static void virtio_scsi_save(QEMUFile *f, void *opaque) > +static void virtio_scsi_save(QEMUFile *f, void *opaque, size_t size) > { > VirtIODevice *vdev = VIRTIO_DEVICE(opaque); > VirtIOSCSI *s = VIRTIO_SCSI(vdev); > @@ -674,16 +674,11 @@ static void virtio_scsi_save(QEMUFile *f, void *opaque) > virtio_save(vdev, f); > } You'll be able to switch to the generic function once the patch removing stopping dataplane has landed. Reviewed-by: Cornelia Huck