[PATCH 2/7] KVM: arm64: PMU: Use reset_pmu_reg() for PMUSERENR_EL0 and PMCCFILTR_EL0

Oliver Upton oliver.upton at linux.dev
Sun Jan 8 11:13:11 PST 2023


On Thu, Dec 29, 2022 at 07:59:23PM -0800, Reiji Watanabe wrote:
> The default reset function for PMU registers (reset_pmu_reg())
> now simply clears a specified register. Use that function for
> PMUSERENR_EL0 and PMCCFILTR_EL0, since those registers should
> simply be cleared on vCPU reset.

AFAICT, the fields in both these registers have UNKNOWN reset values. Of
course, 0 is an entirely valid reset value but the architectural
behavior should be mentioned in the commit message.

--
Thanks,
Oliver



More information about the linux-arm-kernel mailing list