All of lore.kernel.org
 help / color / mirror / Atom feed
* virtio-gpu: Mapping blob resources
@ 2021-07-23 13:33 Antonio Caggiano
  2021-07-23 13:52 ` Gerd Hoffmann
  0 siblings, 1 reply; 5+ messages in thread
From: Antonio Caggiano @ 2021-07-23 13:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel, Tomeu Vizoso, vivek.kasireddy

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-26 14:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 13:33 virtio-gpu: Mapping blob resources Antonio Caggiano
2021-07-23 13:52 ` Gerd Hoffmann
2021-07-23 15:07   ` Antonio Caggiano
2021-07-26  8:19     ` Gerd Hoffmann
2021-07-26 14:32       ` Antonio Caggiano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.