diff options
author | Marc Zyngier <[email protected]> | 2022-11-13 16:38:25 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-19 12:43:47 +0000 |
commit | 26d2d0594d7016dbcbce4038aa202c2858d5a944 (patch) | |
tree | 9905b537a3d3a093922754f773613c1ddc6bbc3f /lib/mpi/mpi-mod.c | |
parent | 9917264d74d9063341968a8e071266358496777b (diff) |
KVM: arm64: PMU: Do not let AArch32 change the counters' top 32 bits
Even when using PMUv3p5 (which implies 64bit counters), there is
no way for AArch32 to write to the top 32 bits of the counters.
The only way to influence these bits (other than by counting
events) is by writing PMCR.P==1.
Make sure we obey the architecture and preserve the top 32 bits
on a counter update.
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions