Thread (7 messages) 7 messages, 2 authors, 2020-02-26

Re: Re: [PATCH 1/2] virtio: add dma-buf support for exported objects

From: David Stevens <hidden>
Date: 2020-02-26 03:57:14
Also in: dri-devel, linux-media, lkml

On Tue, Feb 25, 2020 at 3:10 PM Gerd Hoffmann [off-list ref] wrote:
On Wed, Feb 19, 2020 at 05:06:36PM +0900, David Stevens wrote:
quoted
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.
That duplicates a bunch of code from dma-buf.c in virtio_dma_buf.c.

How about dma_buf_{get,set}_uuid, simliar to dma_buf_set_name?
While I'm not opposed to such an API, I'm also hesitant to make
changes to the dma-buf API for a single use case.

As for the duplicated code around virtio_dma_buf_export_info, it can
be removed by sacrificing a little bit of type safety, if that's
preferable.

-David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help