[PATCH v8 03/13] KVM: arm64: PMU: Add a helper to read a vCPU's PMCR_EL0

Sebastian Ott sebott at redhat.com
Mon Oct 23 09:18:32 PDT 2023


On Fri, 20 Oct 2023, Raghavendra Rao Ananta wrote:
> From: Reiji Watanabe <reijiw at google.com>
>
> Add a helper to read a vCPU's PMCR_EL0, and use it whenever KVM
> reads a vCPU's PMCR_EL0.
>
> Currently, the PMCR_EL0 value is tracked per vCPU. The following
> patches will make (only) PMCR_EL0.N track per guest. Having the
> new helper will be useful to combine the PMCR_EL0.N field
> (tracked per guest) and the other fields (tracked per vCPU)
> to provide the value of PMCR_EL0.
>
> No functional change intended.
>
> Signed-off-by: Reiji Watanabe <reijiw at google.com>
> Signed-off-by: Raghavendra Rao Ananta <rananta at google.com>
> Reviewed-by: Eric Auger <eric.auger at redhat.com>

Reviewed-by: Sebastian Ott <sebott at redhat.com>




More information about the linux-arm-kernel mailing list