]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: aarch64: vPMU test for validating user accesses
authorRaghavendra Rao Ananta <rananta@google.com>
Fri, 20 Oct 2023 21:40:52 +0000 (21:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 24 Oct 2023 22:59:31 +0000 (22:59 +0000)
commit62708be351fe7b06be6f6fd30e95c94095bf21d3
treebcbb8925d29b6984693ec6ed8c3080e3a6b56610
parente1cc87206348f36fb78e417b5813f78f672a4aef
KVM: selftests: aarch64: vPMU test for validating user accesses

Add a vPMU test scenario to validate the userspace accesses for
the registers PM{C,I}NTEN{SET,CLR} and PMOVS{SET,CLR} to ensure
that KVM honors the architectural definitions of these registers
for a given PMCR.N.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231020214053.2144305-13-rananta@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/aarch64/vpmu_counter_access.c