Re: [PATCH v3 31/32] KVM: arm64: Disable PMU support in protected mode

From: Will Deacon
Date: Fri Mar 05 2021 - 14:03:06 EST


On Tue, Mar 02, 2021 at 03:00:01PM +0000, Quentin Perret wrote:
> The host currently writes directly in EL2 per-CPU data sections from
> the PMU code when running in nVHE. In preparation for unmapping the EL2
> sections from the host stage 2, disable PMU support in protected mode as
> we currently do not have a use-case for it.
>
> Signed-off-by: Quentin Perret <qperret@xxxxxxxxxx>
> ---
> arch/arm64/kvm/perf.c | 3 ++-
> arch/arm64/kvm/pmu.c | 8 ++++----
> 2 files changed, 6 insertions(+), 5 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will