]> git.proxmox.com Git - qemu.git/commit
virtio: Support transports which can specify the vring alignment
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jul 2013 12:25:08 +0000 (13:25 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Jul 2013 11:58:46 +0000 (12:58 +0100)
commit6ce69d1c7741c0ad524e4cad6dca31e782108a65
treede2f0e260a882410a21659f83090ab5627d751ee
parente63c0ba1bce0b3cc7037c6c2d327267a585534ec
virtio: Support transports which can specify the vring alignment

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().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1373977512-28932-5-git-send-email-peter.maydell@linaro.org
hw/virtio/virtio.c
include/hw/virtio/virtio-bus.h
include/hw/virtio/virtio.h