]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Add basic test for running in VHE EL2
authorOliver Upton <oliver.upton@linux.dev>
Wed, 17 Sep 2025 21:20:43 +0000 (14:20 -0700)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 Sep 2025 18:23:32 +0000 (19:23 +0100)
commitf677b0efa93ce0afb127ccffb8aaf708045fcf10
treefb1da3e096d5f31f3a2f9f0242d40bf227282921
parent2de21fb62387459f762c93eec3d04e4f7540b952
KVM: arm64: selftests: Add basic test for running in VHE EL2

Add an embarrassingly simple selftest for sanity checking KVM's VHE EL2
and test that the ID register bits are consistent with HCR_EL2.E2H being
RES1.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/arm64/hello_el2.c [new file with mode: 0644]