Skip to content
Commit 292e8f14 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: PMU: Simplify PMCR_EL0 reset handling



Resetting PMCR_EL0 is a pretty involved process that includes
poisoning some of the writable bits, just because we can.

It makes it hard to reason about about what gets configured,
and just resetting things to 0 seems like a much saner option.

Reduce reset_pmcr() to just preserving PMCR_EL0.N from the host,
and setting PMCR_EL0.LC if we don't support AArch32.

Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 86815735
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment