diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-09-29 10:00:31 +0100 |
|---|---|---|
| committer | Oliver Upton <oupton@kernel.org> | 2026-09-29 09:08:56 -0700 |
| commit | afb4334fb52c7b416bbc9c4b166f6806509f734b (patch) | |
| tree | 56355f2879912410ae97063ade403b3445826717 /tools/lib/python | |
| parent | 04447b95c62bef2b3591486c66244c49591a3dbd (diff) | |
| download | linux-next-afb4334fb52c7b416bbc9c4b166f6806509f734b.tar.gz linux-next-afb4334fb52c7b416bbc9c4b166f6806509f734b.zip | |
KVM: arm64: selftests: Check a feature hidden in an ID register is UNDEF
Userspace can hide a feature from a guest by clearing its field in a
writable ID register, and KVM then makes the feature's instructions
UNDEFINED in the guest by trapping or disabling them. No selftest checks
that.
Add a test that runs the instruction of each of TLBI OS, MOPS, TCR2_EL1
and FPMR once with its field as advertised and once with it cleared, and
expects an UNDEF only when cleared. A feature the vCPU doesn't advertise
is skipped, as is hidden TLBI OS on a CPU with neither FGT nor
FEAT_EVT2, where KVM can't trap it.
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260929090031.3829185-5-fuad.tabba@linux.dev
Signed-off-by: Oliver Upton <oupton@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
