]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: selftests: Add basic SError injection test
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:29 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:36 +0000 (11:36 -0700)
commit2858ea3083f088a76b439f5b88b6d4f032dabc0c
tree5ba308014b9c2453c299b41800593c1df89ab6e6
parentbfb7a30b19861e559d64b7f2c3202d948fbf93ea
KVM: arm64: selftests: Add basic SError injection test

Add tests for SError injection considering KVM is more directly involved
in delivery:

 - Pending SErrors are taken at the first CSE after SErrors are unmasked

 - Pending SErrors aren't taken and remain pending if SErrors are masked

 - Unmasked SErrors are taken immediately when injected (implementation
   detail)

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250708172532.1699409-25-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/arm64/external_aborts.c [moved from tools/testing/selftests/kvm/arm64/mmio_abort.c with 60% similarity]
tools/testing/selftests/kvm/include/arm64/processor.h