Received: from eggs.gnu.org ([2001:4830:134:3::10]:50051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFmBA-0003h4-Sn for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFmB6-0005Cj-Ny for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:43:07 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFmB6-0005Cc-Dp for qemu-devel@nongnu.org; Wed, 22 Jun 2016 13:43:04 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5MHdIZY073837 for ; Wed, 22 Jun 2016 13:43:03 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 23qaef0wrs-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 22 Jun 2016 13:43:03 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Jun 2016 18:43:01 +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 178AD17D805A for ; Wed, 22 Jun 2016 18:44:16 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5MHgxHW8585666 for ; Wed, 22 Jun 2016 17:42:59 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5MHgwBQ002179 for ; Wed, 22 Jun 2016 11:42:58 -0600 Date: Wed, 22 Jun 2016 19:42:57 +0200 From: Cornelia Huck In-Reply-To: <1466536447-30146-6-git-send-email-dgilbert@redhat.com> References: <1466536447-30146-1-git-send-email-dgilbert@redhat.com> <1466536447-30146-6-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160622194257.179d02c5.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 05/13] virtio-blk: 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:59 +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/block/virtio-blk.c | 16 ++++++---------- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 284e646..8b93f9f 100644 > --- a/hw/block/virtio-blk.c > +++ b/hw/block/virtio-blk.c > @@ -792,7 +792,7 @@ static void virtio_blk_set_status(VirtIODevice *vdev, uint8_t status) > } > } > > -static void virtio_blk_save(QEMUFile *f, void *opaque) > +static void virtio_blk_save(QEMUFile *f, void *opaque, size_t size) > { > VirtIODevice *vdev = VIRTIO_DEVICE(opaque); > VirtIOBlock *s = VIRTIO_BLK(vdev); Dito as for scsi, you'll be able to use the generic function as well. Reviewed-by: Cornelia Huck