]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: Add improved queue allocation API
authorAndy Lutomirski <luto@kernel.org>
Wed, 3 Feb 2016 05:46:37 +0000 (21:46 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Mar 2016 15:01:57 +0000 (17:01 +0200)
commit2882a9ac20d3b7a96c3eca333c4bf4652564967c
treeab3783be11369f689e3e7aebe0c438ab6746375f
parent341d95bd9d8bf65645874899a23607d9eeeb7ba6
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>
drivers/virtio/virtio_ring.c
include/linux/virtio.h
include/linux/virtio_ring.h