summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/include/aarch64/processor.h
diff options
context:
space:
mode:
authorReiji Watanabe <reijiw@google.com>2023-10-21 00:40:51 +0300
committerOliver Upton <oliver.upton@linux.dev>2023-10-25 01:59:31 +0300
commite1cc87206348f36fb78e417b5813f78f672a4aef (patch)
tree2caff0c10aafe6023dfae94215b6534c244ecc8a /tools/testing/selftests/kvm/include/aarch64/processor.h
parentada1ae68262deea2685ccd38136ea2db233dfc4c (diff)
downloadlinux-e1cc87206348f36fb78e417b5813f78f672a4aef.tar.xz
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>
Diffstat (limited to 'tools/testing/selftests/kvm/include/aarch64/processor.h')
-rw-r--r--tools/testing/selftests/kvm/include/aarch64/processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h
index cb537253a6b9..c42d683102c7 100644
--- a/tools/testing/selftests/kvm/include/aarch64/processor.h
+++ b/tools/testing/selftests/kvm/include/aarch64/processor.h
@@ -104,6 +104,7 @@ enum {
#define ESR_EC_SHIFT 26
#define ESR_EC_MASK (ESR_EC_NUM - 1)
+#define ESR_EC_UNKNOWN 0x0
#define ESR_EC_SVC64 0x15
#define ESR_EC_IABT 0x21
#define ESR_EC_DABT 0x25