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

Add a new test case to the vpmu_counter_access test to check if PMU
registers or their bits for implemented counters on the vCPU are
readable/writable as expected, and can be programmed to count events.

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-11-rananta@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/aarch64/vpmu_counter_access.c