* [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration
@ 2026-11-25 11:51 Alex Bennée
2026-11-25 11:55 ` Marc-André Lureau
2026-11-25 12:03 ` Daniel P. Berrangé
0 siblings, 2 replies; 5+ messages in thread
From: Alex Bennée @ 2026-11-25 11:51 UTC (permalink / raw)
To: qemu-devel
Cc: berrange, Alex Bennée, Akihiko Odaki, Dmitry Osipenko,
Pierrick Bouvier
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.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
index d05f8cb8e3f..06e60ec6782 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
------------------------
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration
2026-11-25 11:51 [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration Alex Bennée
@ 2026-11-25 11:55 ` Marc-André Lureau
2026-11-25 12:03 ` Daniel P. Berrangé
1 sibling, 0 replies; 5+ messages in thread
From: Marc-André Lureau @ 2026-11-25 11:55 UTC (permalink / raw)
To: Alex Bennée
Cc: qemu-devel, berrange, Akihiko Odaki, Dmitry Osipenko,
Pierrick Bouvier
On Wed, Nov 25, 2026 at 3:52 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
> 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.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
> index d05f8cb8e3f..06e60ec6782 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
> ------------------------
>
> --
> 2.47.3
>
>
--
Marc-André Lureau
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration
2026-11-25 11:51 [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration Alex Bennée
2026-11-25 11:55 ` Marc-André Lureau
@ 2026-11-25 12:03 ` Daniel P. Berrangé
2026-11-25 12:37 ` Alex Bennée
1 sibling, 1 reply; 5+ messages in thread
From: Daniel P. Berrangé @ 2026-11-25 12:03 UTC (permalink / raw)
To: Alex Bennée
Cc: qemu-devel, Akihiko Odaki, Dmitry Osipenko, Pierrick Bouvier
On Wed, Nov 25, 2026 at 11:51:04AM +0000, Alex Bennée wrote:
> 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.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
> index d05f8cb8e3f..06e60ec6782 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.
Perhaps ought to be referenced in security.rst too, as an unusual
part of virtio that is NOT within the security boundary.
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration
2026-11-25 12:03 ` Daniel P. Berrangé
@ 2026-11-25 12:37 ` Alex Bennée
2026-11-25 12:45 ` Daniel P. Berrangé
0 siblings, 1 reply; 5+ messages in thread
From: Alex Bennée @ 2026-11-25 12:37 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: qemu-devel, Akihiko Odaki, Dmitry Osipenko, Pierrick Bouvier
Daniel P. Berrangé <berrange@redhat.com> writes:
> On Wed, Nov 25, 2026 at 11:51:04AM +0000, Alex Bennée wrote:
>> 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.
>>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>> docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++
>> 1 file changed, 12 insertions(+)
>>
>> diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
>> index d05f8cb8e3f..06e60ec6782 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.
>
> Perhaps ought to be referenced in security.rst too, as an unusual
> part of virtio that is NOT within the security boundary.
Hmm where would be a good case? The only virtio we reference is the
s390-ccw-virtio machine type. We talk about the process but don't
mention specific devices.
>
>
> With regards,
> Daniel
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration
2026-11-25 12:37 ` Alex Bennée
@ 2026-11-25 12:45 ` Daniel P. Berrangé
0 siblings, 0 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2026-11-25 12:45 UTC (permalink / raw)
To: Alex Bennée
Cc: qemu-devel, Akihiko Odaki, Dmitry Osipenko, Pierrick Bouvier
On Wed, Nov 25, 2026 at 12:37:34PM +0000, Alex Bennée wrote:
> Daniel P. Berrangé <berrange@redhat.com> writes:
>
> > On Wed, Nov 25, 2026 at 11:51:04AM +0000, Alex Bennée wrote:
> >> 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.
> >>
> >> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> >> ---
> >> docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++
> >> 1 file changed, 12 insertions(+)
> >>
> >> diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst
> >> index d05f8cb8e3f..06e60ec6782 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.
> >
> > Perhaps ought to be referenced in security.rst too, as an unusual
> > part of virtio that is NOT within the security boundary.
>
> Hmm where would be a good case? The only virtio we reference is the
> s390-ccw-virtio machine type. We talk about the process but don't
> mention specific devices.
Just in the list of items under "security boundary scope", could
have a sentence that links to this warning in virtio-gpu
https://www.qemu.org/docs/master/system/security.html#security-boundary-scope
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 12:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 11:51 [RFC PATCH] docs/virtio: add note about virtio-gpu acceleration Alex Bennée
2026-11-25 11:55 ` Marc-André Lureau
2026-11-25 12:03 ` Daniel P. Berrangé
2026-11-25 12:37 ` Alex Bennée
2026-11-25 12:45 ` Daniel P. Berrangé
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.