On Tue, 21 Jun 2016 20:13:59 +0100
"Dr. David Alan Gilbert (git)" <dgilb...@redhat.com> wrote:

> From: "Dr. David Alan Gilbert" <dgilb...@redhat.com>
> 
> Forcibly convert it to a vmstate wrapper;  proper conversion
> comes later.
> 
> Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
> ---
>  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 <cornelia.h...@de.ibm.com>


Reply via email to