diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2024-10-25 21:23:48 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-10-31 22:00:40 +0300 |
commit | 9a1c58cfefb06974a804174f127de3fedc779394 (patch) | |
tree | c42e37e809ac750cfcce9262b2ecdecdca6babcb /tools/perf/scripts/python/gecko.py | |
parent | a3034dab74fc12d6c0a589e31af9fafc436a4a0e (diff) | |
download | linux-9a1c58cfefb06974a804174f127de3fedc779394.tar.xz |
KVM: arm64: nv: Adjust range of accessible PMCs according to HPMN
The value of MDCR_EL2.HPMN controls the number of event counters made
visible to EL0 and EL1. This means it is possible for the guest
hypervisor to allow direct access to event counters to the L2.
Rework KVM's PMU register emulation to take the effects of HPMN into
account when handling a trap. For bitmask-style registers, writes only
affect accessible registers.
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241025182354.3364124-14-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions