]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Test effective value of HCR_EL2.AMO
authorOliver Upton <oliver.upton@linux.dev>
Fri, 26 Sep 2025 22:44:54 +0000 (15:44 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:17:03 +0000 (14:17 +0100)
commit890c608b4d5e6a616693da92a2d4e7de4ab9e6c5
treee1dbae856763258c44c5ce954f4a322134b12ac4
parenta46c09b382eea3f9e3d16576096b987a2171fcca
KVM: arm64: selftests: Test effective value of HCR_EL2.AMO

A defect against the architecture now allows an implementation to treat
AMO as 1 when HCR_EL2.{E2H, TGE} = {1, 0}. KVM now takes advantage of
this interpretation to address a quality of emulation issue w.r.t.
SError injection.

Add a corresponding test case and expect a pending SError to be taken.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/external_aborts.c
tools/testing/selftests/kvm/include/arm64/processor.h