On Tue, Dec 3, 2019 at 1:33 AM Gerd Hoffmann <kra...@redhat.com> wrote:
> On Mon, Dec 02, 2019 at 09:24:31AM -0800, Frank Yang wrote: > > Interesting; what's the use case for this? > > Mostly reduce data copying. > > > Do we already have a mechanism > > to import memory to virtio-gpu via importing a bo handle from somewhere > > else? > > Inside the guest? Import is not working yet, that needs another update > (blob resources) due to current virtio-gpu resources requiring a format > at creation time and dmabufs not having one. > > Gotcha, I was just poking around related code and it looked like I could use a resource w/ R8 format and width = bytes. Blob resources would be a more proper way then :) > See https://www.kraxel.org/blog/2019/11/virtio-gpu-status-and-plans/ for > some background. > > Exporting virtio-gpu resources works in the drm-misc-next branch, should > land in mainline this merge window (i.e. 5.5-rc1). > > cheers, > Gerd > >