All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonio Caggiano <antonio.caggiano@collabora.com>
To: qemu-devel@nongnu.org
Cc: kraxel@redhat.com, Tomeu Vizoso <tomeu.vizoso@collabora.com>,
	vivek.kasireddy@intel.com
Subject: virtio-gpu: Mapping blob resources
Date: Fri, 23 Jul 2021 15:33:24 +0200	[thread overview]
Message-ID: <0eb17319-0b1d-5f43-f5d9-8ccadb0839ef@collabora.com> (raw)

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


             reply	other threads:[~2021-07-23 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23 13:33 Antonio Caggiano [this message]
2021-07-23 13:52 ` virtio-gpu: Mapping blob resources Gerd Hoffmann
2021-07-23 15:07   ` Antonio Caggiano
2021-07-26  8:19     ` Gerd Hoffmann
2021-07-26 14:32       ` Antonio Caggiano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0eb17319-0b1d-5f43-f5d9-8ccadb0839ef@collabora.com \
    --to=antonio.caggiano@collabora.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tomeu.vizoso@collabora.com \
    --cc=vivek.kasireddy@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.