Commit 1b82664089 for qemu.org
commit 1b8266408913722b6f257f19865993e178f73a1a
Author: Alex Bennée <alex.bennee@linaro.org>
Date: Thu Nov 26 14:36:07 2026 +0000
docs/virtio: add note about virtio-gpu acceleration
3d acceleration has a bunch of issues and is considered hard to secure
in our current setup. As we have dropped it from the virtualisation
use case lets call that out in the docs.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20261126143607.2374676-9-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
index d05f8cb8e3..06e60ec678 100644
--- a/docs/system/devices/virtio/virtio-gpu.rst
+++ b/docs/system/devices/virtio/virtio-gpu.rst
@@ -29,6 +29,18 @@ host's GPU and for the best performance be able to reliably share GPU
memory with the guest. Details of 3D acceleration requirements are
described in a further sections.
+.. warning::
+
+ As 3D acceleration by its very nature involves giving the guest
+ fairly complete access to a bus master processing unit in the host
+ GPU we consider this outside the virtualisation use case with
+ respect to security. You should only ever enable 3D acceleration
+ with trusted guests. There is still the option of off-loading 3D
+ acceleration to a separate process via :ref:`vhost_user_proto`
+ depending on what guarantees that process can make and how well
+ confined it can be if things go wrong.
+
+
QEMU virtio-gpu variants
------------------------
diff --git a/docs/system/security.rst b/docs/system/security.rst
index c0254fef11..322ef00353 100644
--- a/docs/system/security.rst
+++ b/docs/system/security.rst
@@ -99,6 +99,11 @@ an issue as a normal bug.
crashes / undesirable behaviour in QEMU will **not** be treated as
security flaws, but should be fixed as hardening bugs.
+* **virtio-gpu** with 3D acceleration. While VirtIO is generally
+ preferred for the virtualisation use case we make an exception for
+ 3D acceleration given the potentially large attack surface it
+ presents. You should only use 3D acceleration with trusted guests.
+
* **memory allocation bounds**. There are many ways in which a QEMU
process can legitimately consume an amount of memory that is
significantly larger than the assigned guest RAM. QEMU's worst