From: Lucas Amaral <lucaaamaral@gmail.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: Lucas Amaral <lucaaamaral@gmail.com>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
peter.maydell@linaro.org, agraf@csgraf.de,
mohamed@unpredictable.fr
Subject: Re: [PATCH v4 1/3] virtio-gpu: validate host page alignment for MAP_FIXED blobs
Date: Thu, 23 Apr 2026 20:44:15 -0300 [thread overview]
Message-ID: <20260423234415.7753-1-lucaaamaral@gmail.com> (raw)
In-Reply-To: <87mrytwo8h.fsf@draig.linaro.org>
Hi Alex,
Thanks for looking at this.
> What was your test case? Is it possible to publish some images for a
> functional test?
The test case is running a Linux VM with virtio-gpu Venus (Vulkan
passthrough) on an Apple Silicon Mac:
- Host: macOS ARM64 with 16KB pages
- Guest: Linux ARM64 with 4KB pages
- GPU: virtio-gpu-gl with Venus/virglrenderer + MoltenVK
When the guest allocates a blob resource with a 4KB-aligned size,
mmap(MAP_FIXED) fails with EINVAL because the size isn't aligned to
the host's 16KB page boundary. Without this patch the blob resource
is silently unusable — the guest sees no GPU output.
Reproducing it requires the full macOS Venus stack, which includes
patches across multiple projects:
QEMU (this series + two others on the list):
- Stack A: ISV=0 data abort emulation (v6, R-b by Mohamed)
https://patchew.org/QEMU/20260409220614.65558-1-lucaaamaral@gmail.com/
- Stack B: this series (hvf map granule + MAP_FIXED alignment)
- Stack C: Venus without OpenGL (v5)
https://patchew.org/QEMU/20260317182049.33848-1-lucaaamaral@gmail.com/
virglrenderer (GitLab MRs):
- MR !1600: macOS build support (merged)
- MR !1601: posix_spawn worker for macOS (merged)
- MR !1602: Metal shared memory (R-b by Yiwei Zhang, under review)
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1602
- MR !1603: SOCK_CLOEXEC/MSG_CMSG_CLOEXEC optional (merged)
- MR !1607: server preparations for macOS process model (merged)
- MR !1608: Metal vulkan header roll (merged)
I don't think a functional test is practical for CI since it requires
macOS + HVF + MoltenVK + a guest image, but I'm open to suggestions.
Thanks,
Lucas
next prev parent reply other threads:[~2026-04-23 23:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 17:57 [PATCH v4 0/3] hvf: map granule abstraction, configurable IPA, and MAP_FIXED alignment fix Lucas Amaral
2026-03-17 17:57 ` [PATCH v4 1/3] virtio-gpu: validate host page alignment for MAP_FIXED blobs Lucas Amaral
2026-04-23 18:00 ` Alex Bennée
2026-04-23 23:44 ` Lucas Amaral [this message]
2026-04-24 10:09 ` Alex Bennée
2026-04-24 21:37 ` Lucas Amaral
2026-03-17 17:57 ` [PATCH v4 2/3] accel/hvf: introduce map granule abstraction and IPA property Lucas Amaral
2026-04-23 18:05 ` Alex Bennée
2026-04-23 23:44 ` Lucas Amaral
2026-03-17 17:57 ` [PATCH v4 3/3] target/arm/hvf: configure IPA granule on macOS 26 Lucas Amaral
2026-04-09 17:52 ` [PATCH v4 0/3] hvf: map granule abstraction, configurable IPA, and MAP_FIXED alignment fix Lucas Amaral
2026-04-09 19:06 ` Peter Maydell
2026-04-10 14:13 ` Peter Maydell
2026-04-23 17:22 ` Lucas Amaral
2026-04-24 7:08 ` Philippe Mathieu-Daudé
2026-04-24 21:38 ` Lucas Amaral
-- strict thread matches above, loose matches on Subject: below --
2026-03-17 17:48 Lucas Amaral
2026-03-17 17:48 ` [PATCH v4 1/3] virtio-gpu: validate host page alignment for MAP_FIXED blobs Lucas Amaral
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=20260423234415.7753-1-lucaaamaral@gmail.com \
--to=lucaaamaral@gmail.com \
--cc=agraf@csgraf.de \
--cc=alex.bennee@linaro.org \
--cc=mohamed@unpredictable.fr \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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.