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