From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Bernhard Beschow" <shentey@gmail.com>,
qemu-devel@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Alistair Francis" <Alistair.Francis@wdc.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
qemu-riscv@nongnu.org, qemu-ppc@nongnu.org,
"Huacai Chen" <chenhuacai@kernel.org>,
qemu-s390x@nongnu.org, "Halil Pasic" <pasic@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Song Gao" <gaosong@loongson.cn>,
"Bibo Mao" <maobibo@loongson.cn>
Subject: Re: [RFC PATCH] docs/system/security: Restrict "virtualization use case" to specific machines
Date: Tue, 14 Oct 2025 14:22:37 +0100 [thread overview]
Message-ID: <aO5OndKoyP4Tk8Rw@redhat.com> (raw)
In-Reply-To: <CAFEAcA9p51aPGhHgUPishEJ9TE60dm83ofKr5Wa-qM_1SqJ67w@mail.gmail.com>
On Tue, Oct 14, 2025 at 01:20:07PM +0100, Peter Maydell wrote:
> On Mon, 13 Oct 2025 at 12:47, Daniel P. Berrangé <berrange@redhat.com> wrote:
> > With a very minimal wording tweak our current defined policy could
> > avoid being a blocker for enabling KVM in imx8mp-evk. In
> >
> > https://www.qemu.org/docs/master/system/security.html
> >
> > where it describes the "virtualization use case", we could simply
> > tweak it to always require a versioned machine type
> >
> > Change
> >
> > "These use cases rely on hardware virtualization extensions
> > to execute guest code safely on the physical CPU at close-
> > to-native speed."
> >
> > To say
> >
> > "These use cases apply to versioned machine types when used
> > in combination with hardware virtualization extensions
> > to execute guest code safely on the physical CPU at close-
> > to-native speed"
>
> With the suggested changes listed elsewhere in this
> thread, my current manually curated list of machines is:
>
> aarch64
> ``virt``
> i386, x86_64
> ``microvm``, ``xenfv``, ``xenpv``, ``xenpvh``, ``pc``, ``q35``
> s390x
> ``s390-ccw-virtio``
> loongarch64:
> ``virt``
> ppc64:
> ``pseries``
> riscv32, riscv64:
> ``virt``
>
> If we say "versioned machine type", that puts these machines
> outside the "supported" boundary:
>
> i386, x86_64
> ``microvm``, ``xenfv``, ``xenpv``, ``xenpvh``
> loongarch64:
> ``virt``
> riscv32, riscv64:
> ``virt``
>
> I can certainly see the argument for loongarch64
> and maybe even riscv[*] still being "not supported for
> production security-boundary stuff", but do we really
> want to say that the Xen machine types and microvm
> aren't suitable for VM use ?
No, that would be wrong. How about this alternative
@@ -21,7 +21,9 @@ Virtualization Use Case
The virtualization use case covers cloud and virtual private server (VPS)
hosting, as well as traditional data center and desktop virtualization. These
use cases rely on hardware virtualization extensions to execute guest code
-safely on the physical CPU at close-to-native speed.
+safely on the physical CPU at close-to-native speed. This use case is limited
+to the use of versioned machine types, or machine types designed exclusively
+for virtualization.
The following entities are untrusted, meaning that they may be buggy or
malicious:
that wording would bring xen* and microvm into the scope, and so match
your manually curated list.
> [*] Could somebody from riscv or loongarch maintainers
> say whether they think these machines should be on the
> "security supported" list or not yet ?
As 'virt' machines even if they're not quite there today, they are heading
in that direction. So it would make sense to consider them in scope for
the virtualization use case security handling. Even with this classification
we still have the flexibility to make bugs public immediately with no embargo
if we consider the real world impact to be low, so the burden is not large.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2025-10-14 13:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-08 12:50 [RFC PATCH] docs/system/security: Restrict "virtualization use case" to specific machines Peter Maydell
2025-09-08 13:09 ` Paolo Bonzini
2025-09-08 13:21 ` Thomas Huth
2025-09-24 23:57 ` Philippe Mathieu-Daudé
2025-09-08 13:42 ` Stefan Hajnoczi
2025-09-08 14:45 ` Michael S. Tsirkin
2025-09-08 15:15 ` Daniel P. Berrangé
2025-09-25 0:05 ` Philippe Mathieu-Daudé
2025-09-25 9:22 ` Daniel P. Berrangé
2025-10-13 10:40 ` Bernhard Beschow
2025-10-13 11:12 ` Michael S. Tsirkin
2025-10-13 11:47 ` Daniel P. Berrangé
2025-10-13 11:59 ` Michael S. Tsirkin
2025-10-13 19:36 ` Bernhard Beschow
2025-10-14 12:20 ` Peter Maydell
2025-10-14 12:38 ` Bibo Mao
2025-10-14 13:22 ` Daniel P. Berrangé [this message]
2025-10-14 13:24 ` Peter Maydell
2025-09-08 15:09 ` Daniel P. Berrangé
2025-09-08 15:15 ` Peter Maydell
2025-09-24 18:16 ` Bernhard Beschow
2025-09-25 0:19 ` Philippe Mathieu-Daudé
2025-09-25 9:04 ` Peter Maydell
2025-09-25 0:14 ` Philippe Mathieu-Daudé
2025-10-13 12:09 ` Bernhard Beschow
2025-10-13 11:17 ` Bernhard Beschow
2025-09-09 5:19 ` Bernhard Beschow
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=aO5OndKoyP4Tk8Rw@redhat.com \
--to=berrange@redhat.com \
--cc=Alistair.Francis@wdc.com \
--cc=borntraeger@linux.ibm.com \
--cc=chenhuacai@kernel.org \
--cc=gaosong@loongson.cn \
--cc=jiaxun.yang@flygoat.com \
--cc=maobibo@loongson.cn \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=shentey@gmail.com \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.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.