diff options
| author | 2026-01-22 11:22:17 +0000 | |
|---|---|---|
| committer | 2026-01-23 11:28:48 +0000 | |
| commit | 5ee8ad69da07d0e2cffa0ce2f2339c9ad2d587f2 (patch) | |
| tree | b4e0a9007a5f25f9523387455217e9ac3b1cca5e /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | KVM: arm64: Trap MTE access and discovery when MTE is disabled (diff) | |
KVM: arm64: Inject UNDEF when accessing MTE sysregs with MTE disabled
When MTE hardware is present but disabled via software (`arm64.nomte` or
`CONFIG_ARM64_MTE=n`), the kernel clears `HCR_EL2.ATA` and sets
`HCR_EL2.TID5`, to prevent the use of MTE instructions.
Additionally, accesses to certain MTE system registers trap to EL2 with
exception class ESR_ELx_EC_SYS64. To emulate hardware without MTE (where
such accesses would cause an Undefined Instruction exception), inject
UNDEF into the host.
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260122112218.531948-4-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
