Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-12-03 Thread Gerd Hoffmann
Hi, > > > 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

Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-12-03 Thread Frank Yang
On Tue, Dec 3, 2019 at 1:33 AM Gerd Hoffmann 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

Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-12-03 Thread Gerd Hoffmann
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,

Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-12-02 Thread Frank Yang
Interesting; what's the use case for this? Do we already have a mechanism to import memory to virtio-gpu via importing a bo handle from somewhere else? On Thu, Nov 28, 2019 at 9:37 PM Gerd Hoffmann wrote: > On Thu, Nov 28, 2019 at 07:04:23PM +0100, Matti Moell wrote: > > Hi Gerd, > > > > I

Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-11-28 Thread Gerd Hoffmann
On Thu, Nov 28, 2019 at 07:04:23PM +0100, Matti Moell wrote: > Hi Gerd, > > I really like this! > > On 28.11.19 14:19, Gerd Hoffmann wrote: > > @@ -186,6 +211,7 @@ \subsubsection{Device Operation: Request > > header}\label{sec:Device Types / GPU De > > VIRTIO_GPU_CMD_GET_CAPSET_INFO,

Re: [virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-11-28 Thread Laszlo Ersek
On 11/28/19 14:19, Gerd Hoffmann wrote: > +resources. Normal resources have both a guest buffer and host buffer > +buffer for the resource and the VIRTIO_GPU_CMD_TRANSFER_* commands are typo: "buffer\nbuffer" Thanks Laszlo -

[virtio-dev] [PATCH] virtio-gpu: add shared resource feature

2019-11-28 Thread Gerd Hoffmann
This patch adds a new virtio feature for shared resources. Shared resources are allocated by the guest from normal ram, like traditional resources. They can be used by the guest almost like traditional resources, the only exception is that shared resources can only be used with backing storage