]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Add test for nASSGIcap attribute
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 24 Jul 2025 06:28:04 +0000 (23:28 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 26 Jul 2025 15:45:52 +0000 (08:45 -0700)
commit15b5964a411f386d53e41a5595a3dd5e6068a59e
tree17b3e346e9b830236ac0fd8cb0de986e89baedba
parentc652887a92887b9a2d48ee40f49f8013449b9a50
KVM: arm64: selftests: Add test for nASSGIcap attribute

Extend vgic_init to test the nASSGIcap attribute, asserting that it is
configurable (within reason) prior to initializing the VGIC.
Additionally, check that userspace cannot set the attribute after the
VGIC has been initialized.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250724062805.2658919-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/arm64/vgic_init.c