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
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