Re: [Qemu-devel] [PATCH 3/8] virtio: Add support for guest setting of queue size

2013-07-09 Thread Peter Maydell
On 8 July 2013 20:39, Anthony Liguori wrote: > Peter Maydell writes: >> +void virtio_queue_set_num(VirtIODevice *vdev, int n, int num) >> +{ >> +vdev->vq[n].vring.num = num; >> +virtqueue_init(&vdev->vq[n]); > > I think some level of checking is probably needed on num since we do a > trem

Re: [Qemu-devel] [PATCH 3/8] virtio: Add support for guest setting of queue size

2013-07-08 Thread Anthony Liguori
Peter Maydell writes: > The MMIO virtio transport spec allows the guest to tell the host how > large the queue size is. Add virtio_queue_set_num() function which > implements this in the QEMU common virtio support code. > > Signed-off-by: Peter Maydell > --- > hw/virtio/virtio.c |6

[Qemu-devel] [PATCH 3/8] virtio: Add support for guest setting of queue size

2013-06-27 Thread Peter Maydell
The MMIO virtio transport spec allows the guest to tell the host how large the queue size is. Add virtio_queue_set_num() function which implements this in the QEMU common virtio support code. Signed-off-by: Peter Maydell --- hw/virtio/virtio.c |6 ++ include/hw/virtio/virtio.h |