[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
virtio-gpu: Mapping blob resources
From: |
Antonio Caggiano |
Subject: |
virtio-gpu: Mapping blob resources |
Date: |
Fri, 23 Jul 2021 15:33:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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 offset in the host visible memory region. So, I
believe I will need something like:
> void *data = g->hotstmem[mblob.offset]; // pseudo-code
> virgl_renderer_resource_map(..., &data, ...);
Questions:
- Does my approach make sense?
- How do I get an address to the host visible memory region?
Best regards,
Antonio
- virtio-gpu: Mapping blob resources,
Antonio Caggiano <=