diff options
| author | Reiji Watanabe <reijiw@google.com> | 2023-10-20 21:40:51 +0000 |
|---|---|---|
| committer | Oliver Upton <oliver.upton@linux.dev> | 2023-10-24 22:59:31 +0000 |
| commit | e1cc87206348f36fb78e417b5813f78f672a4aef (patch) | |
| tree | 2caff0c10aafe6023dfae94215b6534c244ecc8a /tools/testing/selftests/kvm/include/aarch64 | |
| parent | KVM: selftests: aarch64: vPMU register test for implemented counters (diff) | |
| download | linux-e1cc87206348f36fb78e417b5813f78f672a4aef.tar.gz linux-e1cc87206348f36fb78e417b5813f78f672a4aef.zip | |
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')
| -rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/processor.h | 1 |
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 |
