KVM: selftests: aarch64: vPMU register test for unimplemented counters
authorReiji Watanabe <reijiw@google.com>
Fri, 20 Oct 2023 21:40:51 +0000 (21:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 24 Oct 2023 22:59:31 +0000 (22:59 +0000)
commite1cc87206348f36fb78e417b5813f78f672a4aef
tree2caff0c10aafe6023dfae94215b6534c244ecc8a
parentada1ae68262deea2685ccd38136ea2db233dfc4c
KVM: selftests: aarch64: vPMU register test for unimplemented counters

Add a new test case to the vpmu_counter_access test to check
if PMU registers or their bits for unimplemented counters are not
accessible or are RAZ, as expected.

Signed-off-by: Reiji Watanabe <reijiw@google.com>
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-12-rananta@google.com
[Oliver: fix issues relating to exception return address]
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/aarch64/vpmu_counter_access.c
tools/testing/selftests/kvm/include/aarch64/processor.h