virtio: Support transports which can specify the vring alignment

Enterprise / Virtualization / QEMU - Peter Maydell [linaro.org] - 19 July 2013 06:58 UTC

Support virtio transports which can specify the vring alignment (ie where the guest communicates this to the host) by providing a new virtio_queue_set_align() function. (The default alignment remains as before.)

Transports which wish to make use of this must set the has_variable_vring_alignment field in their VirtioBusClass struct to true; they can then change the alignment via
virtio_queue_set_align().

6ce69d1 virtio: Support transports which can specify the vring alignment
hw/virtio/virtio.c | 32 +++++++++++++++++++++++++++++---
include/hw/virtio/virtio-bus.h | 6 ++++++
include/hw/virtio/virtio.h | 1 +
3 files changed, 36 insertions(+), 3 deletions(-)

Upstream: git.qemu.org


  • Share