KVM: arm64: selftest: vgic-v3: Add basic GICv3 sysreg userspace access test
authorMarc Zyngier <maz@kernel.org>
Fri, 18 Jul 2025 11:11:54 +0000 (12:11 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 26 Jul 2025 15:36:58 +0000 (08:36 -0700)
commit3435bd79ec13369281f87155b9b612ad0a379795
tree95bd6ade247a6added5b0b26539d0fd3b519bc93
parent8af3e8ab09d0ba9b19fc3ea96ef1fa14660fef21
KVM: arm64: selftest: vgic-v3: Add basic GICv3 sysreg userspace access test

We have a lot of more or less useful vgic tests, but none of them
tracks the availability of GICv3 system registers, which is a bit
annoying.

Add one such test, which covers both EL1 and EL2 registers.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: Itaru Kitayama <itaru.kitayama@fujitsu.com>
Reviewed-by: Sebastian Ott <sebott@redhat.com>
Link: https://lore.kernel.org/r/20250718111154.104029-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/arm64/vgic_init.c