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.
e63c0ba virtio: Add support for guest setting of queue size
hw/virtio/virtio.c | 8 ++++++++
include/hw/virtio/virtio.h | 1 +
2 files changed, 9 insertions(+)
Upstream: git.qemu.org