virtio: Add support for guest setting of queue size
commite63c0ba1bce0b3cc7037c6c2d327267a585534ec
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jul 2013 12:25:07 +0000 (16 13:25 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Jul 2013 11:58:46 +0000 (19 12:58 +0100)
tree7c6c535f6a0e555b601560e87d0b9148c0bd0faa
parent70976c41c1def9d6e8b664c64cdf83b1ea0daa03
virtio: Add support for guest setting of queue size

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.maydell@linaro.org>
Message-id: 1373977512-28932-4-git-send-email-peter.maydell@linaro.org
hw/virtio/virtio.c
include/hw/virtio/virtio.h