]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d18420fbd3d487a996aba08d9741b0ef6e1ccd9
treea7a8c3421f26b9ce09dd86ddc1004813793c2a25
parent50021c0792b17f9fdff000b0a7b10e2e801f8635
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]