qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v10 0/3] target/arm: Add FEAT_MEC to max cpu
@ 2025-10-06  0:10 Gustavo Romero
  2025-10-06  0:10 ` [PATCH v10 1/3] target/arm: Add a cpreg flag to indicate no trap in NV Gustavo Romero
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Gustavo Romero @ 2025-10-06  0:10 UTC (permalink / raw)
  To: qemu-devel, qemu-arm, richard.henderson, peter.maydell
  Cc: alex.bennee, gustavo.romero

This series adds support for all FEAT_MEC registers and cache
instructions to the Arm64 max CPU.

It includes the FEAT_MEC registers and cache maintenance instructions,
but does not modify the translation regimes to support the MECIDs, so no
encryption is supported yet. However, software stacks that rely on
FEAT_MEC should work properly at this point.


Cheers,
Gustavo

v10:
- Addressed comment from pm215 that registers with opc1 == 4 or 5 must
  actually not trap when nested virtualization is turned on. This
  resulted in one additional patch in the series:
  "Add a cpreg flag to indicate no trap in NV".

All previous versions of this series can be found in:

https://patchew.org/QEMU/20250727074202.83141-1-richard.henderson@linaro.org/

Please note that the patches related to FEAT_SCTRL2 and FEAT_TCR2, which
are prerequisites for this series, have already been merged into master.


Gustavo Romero (3):
  target/arm: Add a cpreg flag to indicate no trap in NV
  target/arm: Implement FEAT_MEC registers
  target/arm: Enable FEAT_MEC in -cpu max

 docs/system/arm/emulation.rst |   3 +
 target/arm/cpregs.h           |  11 +++-
 target/arm/cpu-features.h     |   5 ++
 target/arm/cpu.c              |   3 +
 target/arm/cpu.h              |  10 ++++
 target/arm/helper.c           | 109 ++++++++++++++++++++++++++++++++++
 target/arm/internals.h        |   3 +
 target/arm/tcg/cpu64.c        |   1 +
 8 files changed, 142 insertions(+), 3 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-10-10 11:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06  0:10 [PATCH v10 0/3] target/arm: Add FEAT_MEC to max cpu Gustavo Romero
2025-10-06  0:10 ` [PATCH v10 1/3] target/arm: Add a cpreg flag to indicate no trap in NV Gustavo Romero
2025-10-07 14:31   ` Peter Maydell
2025-10-06  0:10 ` [PATCH v10 2/3] target/arm: Implement FEAT_MEC registers Gustavo Romero
2025-10-07 14:32   ` Peter Maydell
2025-10-06  0:10 ` [PATCH v10 3/3] target/arm: Enable FEAT_MEC in -cpu max Gustavo Romero
2025-10-07 14:34   ` Peter Maydell
2025-10-07 14:35 ` [PATCH v10 0/3] target/arm: Add FEAT_MEC to max cpu Peter Maydell
2025-10-10 11:40   ` 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).