diff options
author | Raghavendra Rao Ananta <[email protected]> | 2023-10-20 21:40:46 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-10-24 22:59:30 +0000 |
commit | 27131b199f9fdc0e15baa0ff9d1695b54a96e39c (patch) | |
tree | b9e1d36b31edac194f82ea37c68e173c24fd7200 /tools/perf/util/trace-event-scripting.c | |
parent | a45f41d754e0b37de4b7dc1fb3c6b7a1285882fc (diff) |
KVM: arm64: Sanitize PM{C,I}NTEN{SET,CLR}, PMOVS{SET,CLR} before first run
For unimplemented counters, the registers PM{C,I}NTEN{SET,CLR}
and PMOVS{SET,CLR} are expected to have the corresponding bits RAZ.
Hence to ensure correct KVM's PMU emulation, mask out the RES0 bits.
Defer this work to the point that userspace can no longer change the
number of advertised PMCs.
Signed-off-by: Raghavendra Rao Ananta <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions