Re: [v7] Add udmabuf misc device

2018-09-14 Thread Tomeu Vizoso
On 09/14/2018 03:00 PM, Gerd Hoffmann wrote: On Fri, Sep 14, 2018 at 02:00:30PM +0200, Tomeu Vizoso wrote: On 09/14/2018 08:37 AM, Gerd Hoffmann wrote: Hi, Well, no. This is *not* about 3D, it's about software rendering, for example cairo doing its work for gtk apps. So the workflow wou

Re: [v7] Add udmabuf misc device

2018-09-14 Thread Gerd Hoffmann
On Fri, Sep 14, 2018 at 02:00:30PM +0200, Tomeu Vizoso wrote: > On 09/14/2018 08:37 AM, Gerd Hoffmann wrote: > >Hi, > > > > > > Well, no. This is *not* about 3D, it's about software rendering, for > > > > example cairo doing its work for gtk apps. So the workflow would be > > > > along these

Re: [v7] Add udmabuf misc device

2018-09-14 Thread Tomeu Vizoso
On 09/14/2018 08:37 AM, Gerd Hoffmann wrote: Hi, Well, no. This is *not* about 3D, it's about software rendering, for example cairo doing its work for gtk apps. So the workflow would be along these lines: (1) guest app allocates dumb drm buffer from virtio-gpu, renders to it. Why not le

Re: [v7] Add udmabuf misc device

2018-09-14 Thread Gerd Hoffmann
Hi, > > Well, no. This is *not* about 3D, it's about software rendering, for > > example cairo doing its work for gtk apps. So the workflow would be > > along these lines: > > > > (1) guest app allocates dumb drm buffer from virtio-gpu, renders to it. > > (2) guest app passes the buffer to way

Re: [v7] Add udmabuf misc device

2018-09-14 Thread Gurchetan Singh
On Wed, Sep 12, 2018 at 11:44 PM Gerd Hoffmann wrote: > > On Wed, Sep 12, 2018 at 08:24:00PM -0700, Gurchetan Singh wrote: > > On Wed, Sep 12, 2018 at 12:03 AM Yann Droneaud wrote: > > > > > > Hi, > > > > > > Le lundi 27 août 2018 à 11:34 +0200, Gerd Hoffmann a écrit : > > > > A driver to let use

Re: [v7] Add udmabuf misc device

2018-09-12 Thread Gerd Hoffmann
On Wed, Sep 12, 2018 at 08:24:00PM -0700, Gurchetan Singh wrote: > On Wed, Sep 12, 2018 at 12:03 AM Yann Droneaud wrote: > > > > Hi, > > > > Le lundi 27 août 2018 à 11:34 +0200, Gerd Hoffmann a écrit : > > > A driver to let userspace turn memfd regions into dma-bufs. > > > > > > Use case: Allows

Re: [v7] Add udmabuf misc device

2018-09-12 Thread Gurchetan Singh
On Wed, Sep 12, 2018 at 12:03 AM Yann Droneaud wrote: > > Hi, > > Le lundi 27 août 2018 à 11:34 +0200, Gerd Hoffmann a écrit : > > A driver to let userspace turn memfd regions into dma-bufs. > > > > Use case: Allows qemu create dmabufs for the vga framebuffer or > > virtio-gpu ressources. Then t

Re: [v7] Add udmabuf misc device

2018-09-12 Thread Yann Droneaud
Hi, Le lundi 27 août 2018 à 11:34 +0200, Gerd Hoffmann a écrit : > A driver to let userspace turn memfd regions into dma-bufs. > > Use case: Allows qemu create dmabufs for the vga framebuffer or > virtio-gpu ressources. Then they can be passed around to display > those guest things on the host.