qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 05/13] virtio-blk: Wrap in vmstate


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH 05/13] virtio-blk: Wrap in vmstate
Date: Wed, 22 Jun 2016 19:42:57 +0200

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

> From: "Dr. David Alan Gilbert" <address@hidden>
> 
> Forcibly convert it to a vmstate wrapper;  proper conversion
> comes later.
> 
> Signed-off-by: Dr. David Alan Gilbert <address@hidden>
> ---
>  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 <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]