]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: allow transports to get avail/used addresses
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 7 Oct 2014 14:39:47 +0000 (16:39 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:25 +0000 (12:05 +0200)
commitdd7b90238cd9b9248e77458b2b98c8f56c5002b9
tree643da66cb95f5afbfc752901654626c373e26820
parent0f1f8571d3c14571deefb61238d3a9087db01b08
virtio: allow transports to get avail/used addresses

For virtio-1, we can theoretically have a more complex virtqueue
layout with avail and used buffers not on a contiguous memory area
with the descriptor table. For now, it's fine for a transport driver
to stay with the old layout: It needs, however, a way to access
the locations of the avail/used rings so it can register them with
the host.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c
include/linux/virtio.h