[PATCH 0/2] KVM: arm64: EL2 PMU reset handling fixes
Marc Zyngier
maz at kernel.org
Mon Feb 17 03:24:10 PST 2025
Joey reports that some of his PMU tests do not behave quite as
expected:
- MDCR_EL2.HPMN is set to 0 out of reset
- PMCR_EL0.P should reset all the counters when written from EL2
These couple of patches attempt to remedy the situation. Note that
they have only been compile-tested.
Marc Zyngier (2):
KVM: arm64: Fix MDCR_EL2.HPMN reset value
KVM: arm64: Contextualise the handling of PMCR_EL0.P writes
arch/arm64/kvm/pmu-emul.c | 21 ++++++++++++++++-----
arch/arm64/kvm/sys_regs.c | 7 ++++++-
2 files changed, 22 insertions(+), 6 deletions(-)
--
2.39.2
More information about the linux-arm-kernel
mailing list