All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonio Caggiano <antonio.caggiano@collabora.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Tomeu Vizoso <tomeu.vizoso@collabora.com>,
	vivek.kasireddy@intel.com
Subject: Re: virtio-gpu: Mapping blob resources
Date: Mon, 26 Jul 2021 16:32:06 +0200	[thread overview]
Message-ID: <1d3f790d-50b4-ccf1-b3e9-dcbef84f20d2@collabora.com> (raw)
In-Reply-To: <20210726081921.yekhfrxg6bccvn64@sirius.home.kraxel.org>

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 vkMapMemory into qemu address space, then
> pass the address of the mapping to memory_region_init_ram_device_ptr().

Awesome, indeed that works and I was able to render krh/vkcube in 
headless mode.

Cheers,
Antonio


      reply	other threads:[~2021-07-26 14:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=1d3f790d-50b4-ccf1-b3e9-dcbef84f20d2@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.