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

Reiji Watanabe reijiw at google.com
Mon Jan 9 17:17:59 PST 2023


Hi Oliver,

On Sun, Jan 8, 2023 at 11:13 AM Oliver Upton <oliver.upton at linux.dev> wrote:
>
> 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.

Uh, yeah, the commit message was misleading.
The fields in both these registers have UNKNOWN reset values.
The ones for 32bit registers (PMUSERENR and PMCCFILTR) have zero reset
values though.

I will update the commit message to mention those explicitly.

Thank you,
Reiji



More information about the linux-arm-kernel mailing list