Gerd Hoffmann
2020-Mar-04 07:48 UTC
[PATCH v2 1/4] dma-buf: add support for virtio exported objects
On Mon, Mar 02, 2020 at 09:15:21PM +0900, David Stevens wrote:> This change adds a new dma-buf operation that allows dma-bufs to be used > by virtio drivers to share exported objects. The new operation allows > the importing driver to query the exporting driver for the UUID which > identifies the underlying exported object. > > Signed-off-by: David Stevens <stevensd at chromium.org> > --- > drivers/dma-buf/dma-buf.c | 14 ++++++++++++++ > include/linux/dma-buf.h | 22 ++++++++++++++++++++++ > 2 files changed, 36 insertions(+) > > diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c > index d4097856c86b..a04632284ec2 100644 > --- a/drivers/dma-buf/dma-buf.c > +++ b/drivers/dma-buf/dma-buf.c > @@ -1158,6 +1158,20 @@ void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr) > } > EXPORT_SYMBOL_GPL(dma_buf_vunmap); > > +#ifdef CONFIG_VIRTIO > +int dma_buf_get_uuid(struct dma_buf *dmabuf, uuid_t *uuid)Hmm, I think I would drop the #ifdef cheers, Gerd
Reasonably Related Threads
- [PATCH v3 1/4] dma-buf: add support for virtio exported objects
- [PATCH v3 1/4] dma-buf: add support for virtio exported objects
- [PATCH v7 1/3] virtio: add dma-buf support for exported objects
- [PATCH v4 1/3] virtio: add dma-buf support for exported objects
- [PATCH v4 1/3] virtio: add dma-buf support for exported objects