From: Joseph Kogut <joseph@anodize.com>
To: buildroot@buildroot.org
Cc: Bernd Kuhls <bernd@kuhls.net>,
Joseph Kogut <joseph.kogut@gmail.com>,
Romain Naour <romain.naour@gmail.com>,
Joseph Kogut <joseph@anodize.com>,
Romain Naour <romain.naour@smile.fr>
Subject: [Buildroot] [PATCH v3 0/4] package/mesa3d: add host native context configs
Date: Thu, 14 May 2026 14:43:36 -0700 [thread overview]
Message-ID: <20260514-mesa3d-amdgpu-virtio-v3-0-dd75eca7fa50@anodize.com> (raw)
The first patch adds a config for mesa to enable the virtio backend for
amdgpu. The second patch enables the same feature for freedreno. The
third patch rounds out the freedreno API support by adding a config to
enable the vulkan driver (turnip), which can also be used with the
virtio backend.
This allows the mesa user-mode drivers that interface with the
amdgpu kernel-mode driver (radeonsi, RADV) and freedreno KMD (freedreno,
turnip) to do so inside virtualized guests over virtio-gpu, mediated by
virglrenderer on the host.
This combination, known as host native context [0], (sometimes referred
to as vDRM) is an alternative to VirGL/Venus for accelerated graphics
and compute in virtualized guests.
Host native context runs the UMD directly in guests. Compared to API
level virtualization through VirGL/Venus, host native context enables
lower overhead, more complete API support, better security, and
additional features like hardware accelerated video encode/decode.
VMMs that support host native context currently include libkrun [1]
based projects like muvm [2], and qemu as of v11.0.0. Also, VMMs which support
rutabaga-gfx [4], including CrosVM and qemu (partial).
See this video [5] for a demonstration of libkrun/muvm with host native
context using the asahi UMD.
Upstream mesa recently also merged support for i915 and panfrost host
native context, which should be a part of v26.3. Those config options
can be added once they become available in a supported release.
See also the patches adding the virglrenderer package [6] to buildroot,
and bumping qemu to v11.0.0 [7].
[0] https://www.collabora.com/news-and-blog/blog/2025/01/15/the-state-of-gfx-virtualization-using-virglrenderer/
[1] https://github.com/containers/libkrun
[2] https://github.com/AsahiLinux/muvm
[3] https://www.qemu.org/2026/04/22/qemu-11-0-0/
[4] https://github.com/magma-gpu/rutabaga_gfx
[5] https://www.youtube.com/watch?v=xRNu0XaXTng
[6] https://lore.kernel.org/buildroot/20260512-virglrenderer-v5-0-1806e588eb59@gmail.com/
[7] https://lore.kernel.org/buildroot/20260514-qemu-v11-0-0-v3-1-e64cbadaa8e5@anodize.com/T/#u
Signed-off-by: Joseph Kogut <joseph@anodize.com>
---
Changes in v3:
- Minor continuity fix in Config.in [Romain]
- Link to v2: https://patch.msgid.link/20260512-mesa3d-amdgpu-virtio-v2-0-30678b797df9@anodize.com
Changes in v2:
- s/MESA3D_GALLIUM_DRIVER_FREEDRENO_KMDS/MESA3D_FREEDRENO_KMDS [Romain]
- Link to v1: https://lore.kernel.org/buildroot/20260227-mesa3d-amdgpu-virtio-v1-3-3e6d10d4eaef@anodize.com/
---
Joseph Kogut (4):
package/mesa3d: add amdgpu-virtio config
package/mesa3d: add freedreno-virtio config
package/mesa3d: add freedreno vulkan driver config
DEVELOPERS: add package/mesa3d for Joseph Kogut
DEVELOPERS | 1 +
package/mesa3d/Config.in | 39 +++++++++++++++++++++++++++++++++++++++
package/mesa3d/mesa3d.mk | 17 +++++++++++++++++
3 files changed, 57 insertions(+)
---
base-commit: 1cc6279d1144c0b61dc6051eb57ab8800931c96c
change-id: 20260225-mesa3d-amdgpu-virtio-a5b4116ea08c
Best regards,
--
Joseph Kogut <joseph@anodize.com>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
---
Joseph Kogut (4):
package/mesa3d: add amdgpu-virtio config
package/mesa3d: add freedreno-virtio config
package/mesa3d: add freedreno vulkan driver config
DEVELOPERS: add package/mesa3d for Joseph Kogut
DEVELOPERS | 1 +
package/mesa3d/Config.in | 39 +++++++++++++++++++++++++++++++++++++++
package/mesa3d/mesa3d.mk | 17 +++++++++++++++++
3 files changed, 57 insertions(+)
---
base-commit: eb496bd63ef4a4466f9482fa4b3226e20cfb7f7b
change-id: 20260512-mesa3d-amdgpu-virtio-2d917a137424
Best regards,
--
Joseph Kogut <joseph@anodize.com>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2026-05-14 21:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 21:43 Joseph Kogut [this message]
2026-05-14 21:43 ` [Buildroot] [PATCH v3 1/4] package/mesa3d: add amdgpu-virtio config Joseph Kogut
2026-05-15 11:56 ` Romain Naour via buildroot
2026-05-14 21:43 ` [Buildroot] [PATCH v3 2/4] package/mesa3d: add freedreno-virtio config Joseph Kogut
2026-05-14 21:43 ` [Buildroot] [PATCH v3 3/4] package/mesa3d: add freedreno vulkan driver config Joseph Kogut
2026-05-14 21:43 ` [Buildroot] [PATCH v3 4/4] DEVELOPERS: add package/mesa3d for Joseph Kogut Joseph Kogut
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=20260514-mesa3d-amdgpu-virtio-v3-0-dd75eca7fa50@anodize.com \
--to=joseph@anodize.com \
--cc=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--cc=joseph.kogut@gmail.com \
--cc=romain.naour@gmail.com \
--cc=romain.naour@smile.fr \
/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.