OSDN Git Service

virtio: add dma-buf support for exported objects
authorDavid Stevens <stevensd@chromium.org>
Tue, 18 Aug 2020 07:13:41 +0000 (16:13 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 18 Aug 2020 08:01:44 +0000 (10:01 +0200)
commita0308938ec81cd0dca9d75833ec0dd1b8708917e
treea7a8c3421f26b9ce09dd86ddc1004813793c2a25
parentbbaac1354cc98415e5b4c3830d796c583ca71907
virtio: add dma-buf support for exported objects

This change adds a new flavor of dma-bufs that can be used by virtio
drivers to share exported objects. A virtio dma-buf can be queried by
virtio drivers to obtain the UUID which identifies the underlying
exported object.

Signed-off-by: David Stevens <stevensd@chromium.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200818071343.3461203-2-stevensd@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/virtio/Makefile
drivers/virtio/virtio.c
drivers/virtio/virtio_dma_buf.c [new file with mode: 0644]
include/linux/virtio.h
include/linux/virtio_dma_buf.h [new file with mode: 0644]