qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] docs/system/arm/virt.rst: Add note on CPU features off by default
@ 2024-01-22 21:12 Gustavo Romero
  2024-01-25 12:49 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Romero @ 2024-01-22 21:12 UTC (permalink / raw)
  To: qemu-trivial, peter.maydell
  Cc: qemu-devel, philmd, alex.bennee, richard.henderson,
	gustavo.romero

Add a note on CPU features that are off by default in `virt` machines.
Some CPU features will remain off even if a CPU-capable CPU (e.g.,
`-cpu max`) is selected because they require support in both the CPU
itself and in the wider system. Therefore, the user, besides selecting a
CPU that supports such features, must also turn on the feature using a
machine option.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
---
 docs/system/arm/virt.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/system/arm/virt.rst b/docs/system/arm/virt.rst
index c245c52b7a..1888e31956 100644
--- a/docs/system/arm/virt.rst
+++ b/docs/system/arm/virt.rst
@@ -69,6 +69,19 @@ Supported guest CPU types:
 Note that the default is ``cortex-a15``, so for an AArch64 guest you must
 specify a CPU type.
 
+Also, please note that passing ``max`` CPU (i.e. ``-cpu max``) won't
+enable all the CPU features for a given ``virt`` machine. Where a CPU
+architectural feature requires support in both the CPU itself and in the
+wider system (e.g. the MTE feature), it may not be enabled by default,
+but instead requires a machine option to enable it.
+
+For example, MTE support must be enabled with ``-machine virt,mte=on``,
+as well as by selecting an MTE-capable CPU (e.g., ``max``) with the
+``-cpu`` option.
+
+See the machine-specific options below or check them for a given machine
+passing ``help``, like: ``-machine virt-9.0,help``.
+
 Graphics output is available, but unlike the x86 PC machine types
 there is no default display device enabled: you should select one from
 the Display devices section of "-device help". The recommended option
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] docs/system/arm/virt.rst: Add note on CPU features off by default
  2024-01-22 21:12 [PATCH v2] docs/system/arm/virt.rst: Add note on CPU features off by default Gustavo Romero
@ 2024-01-25 12:49 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2024-01-25 12:49 UTC (permalink / raw)
  To: Gustavo Romero
  Cc: qemu-trivial, qemu-devel, philmd, alex.bennee, richard.henderson

On Mon, 22 Jan 2024 at 21:12, Gustavo Romero <gustavo.romero@linaro.org> wrote:
>
> Add a note on CPU features that are off by default in `virt` machines.
> Some CPU features will remain off even if a CPU-capable CPU (e.g.,
> `-cpu max`) is selected because they require support in both the CPU
> itself and in the wider system. Therefore, the user, besides selecting a
> CPU that supports such features, must also turn on the feature using a
> machine option.
>
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>

Applied to target-arm.next, thanks.

-- PMM


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-25 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 21:12 [PATCH v2] docs/system/arm/virt.rst: Add note on CPU features off by default Gustavo Romero
2024-01-25 12:49 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).