[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: virtio-gpu: Mapping blob resources
From: |
Gerd Hoffmann |
Subject: |
Re: virtio-gpu: Mapping blob resources |
Date: |
Mon, 26 Jul 2021 10:19:21 +0200 |
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 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 vkMapMemory into qemu address space, then
pass the address of the mapping to memory_region_init_ram_device_ptr().
take care,
Gerd