]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio: Add improved queue allocation API
authorAndy Lutomirski <luto@kernel.org>
Wed, 3 Feb 2016 05:46:37 +0000 (21:46 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 23 Oct 2017 04:32:53 +0000 (21:32 -0700)
commit0e2adf3deddf44155efc6e16a992eb6c3151d5e4
tree7bdb77ee7a3e290590933f56aacf10189e0a8ad7
parent367b4ae2d8d78c2e924080711b909e025135a72f
virtio: Add improved queue allocation API

This leaves vring_new_virtqueue alone for compatbility, but it
adds two new improved APIs:

vring_create_virtqueue: Creates a virtqueue backed by automatically
allocated coherent memory.  (Some day it this could be extended to
support non-coherent memory, too, if there ends up being a platform
on which it's worthwhile.)

__vring_new_virtqueue: Creates a virtqueue with a manually-specified
layout.  This should allow mic_virtio to work much more cleanly.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 2a2d1382fe9dccfce6f9c60a9c9fd2f0fe5bcf2b)
Orabug: 26388044
Reviewed-by: Khalid Aziz <khalid.aziz@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/virtio/virtio_ring.c
include/linux/virtio.h
include/linux/virtio_ring.h