[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fixup! virtio: introduce virtio_map
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH] fixup! virtio: introduce virtio_map |
Date: |
Tue, 27 Oct 2015 13:51:06 +0100 |
On Tue, 27 Oct 2015 14:30:05 +0200
"Michael S. Tsirkin" <address@hidden> wrote:
> ---
>
> This will fix the issue reported by Cornelia.
>
> hw/virtio/virtio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
> index be32145..ed1f274 100644
> --- a/hw/virtio/virtio.c
> +++ b/hw/virtio/virtio.c
> @@ -449,7 +449,7 @@ int virtqueue_avail_bytes(VirtQueue *vq, unsigned int
> in_bytes,
> }
>
> static void virtqueue_map_iovec(struct iovec *sg, hwaddr *addr,
> - size_t *num_sg, size_t max_size,
> + unsigned int *num_sg, unsigned int max_size,
> int is_write)
> {
> unsigned int i;
With this fixup applied, both s390 machines come up. virtio-serial and
virtio-blk with and without dataplane seem fine.
At a first glance, the code seems fine as well.