Re: virtio-gpu: Mapping blob resources

2021-07-26 Thread Antonio Caggiano
On 26/07/21 10:19, Gerd Hoffmann wrote: On Fri, Jul 23, 2021 at 05:07:52PM +0200, Antonio Caggiano wrote: I added it to the gpu hostmem at the offset specified by the map command. I enabled the subregion, and then I used subregion->addr for the vkMapMemory call. Hmm, no. I'd suggest to first

Re: virtio-gpu: Mapping blob resources

2021-07-26 Thread Gerd Hoffmann
On Fri, Jul 23, 2021 at 05:07:52PM +0200, Antonio Caggiano wrote: > Awesome, thanks! > > I already cherry-picked that commit. :D > > I am experimenting with memory regions now. So, I created a ram subregion, > did I use the right type for the task? Yes, ram is correct. > I added it to the gpu h

Re: virtio-gpu: Mapping blob resources

2021-07-23 Thread Antonio Caggiano
Awesome, thanks! I already cherry-picked that commit. :D I am experimenting with memory regions now. So, I created a ram subregion, did I use the right type for the task? I added it to the gpu hostmem at the offset specified by the map command. I enabled the subregion, and then I used subreg

Re: virtio-gpu: Mapping blob resources

2021-07-23 Thread Gerd Hoffmann
On Fri, Jul 23, 2021 at 03:33:24PM +0200, Antonio Caggiano wrote: > Hi, > > I am trying to implement blob resource mapping support, but there is > something I still did not manage to figure out. > > According to the spec, VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB maps a host-only > blob resource into an o