]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: selftests: Add tests for MMIO external abort injection
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 20:31:06 +0000 (20:31 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 26 Oct 2024 14:37:49 +0000 (14:37 +0000)
commit3eb09a3e028e26fd26bc132c7aa0577f00de2d05
treebe506e2ee3509bec0c698e8db83d4e81f9fe1ddc
parentc660d334b3a54f22836955ca5255edd946771614
KVM: arm64: selftests: Add tests for MMIO external abort injection

Test that the plumbing exposed to userspace for injecting aborts in
response to unexpected MMIO works as intended in two different flavors:

 - A 'normal' MMIO instruction (i.e. ESR_ELx.ISV=1)

 - An ISV=0 MMIO instruction with/without KVM_CAP_ARM_NISV_TO_USER
   enabled

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241025203106.3529261-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/mmio_abort.c [new file with mode: 0644]