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 aligu...@us.ibm.com wrote: Peter Maydell peter.mayd...@linaro.org 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

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

2013-07-08 Thread Anthony Liguori
Peter Maydell peter.mayd...@linaro.org 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 peter.mayd...@linaro.org