OSDN Git Service

KVM: arm64: Disable PMU support in protected mode
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:45 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:02:19 +0000 (12:02 +0000)
commit9589a38cdfeba0889590e6ef4627b439034d456c
tree25174a67c8df3b592cee65891edd6502a042d691
parentb83042f0f143a5e9e899924987b542b2ac766e53
KVM: arm64: Disable PMU support in protected mode

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.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-38-qperret@google.com
arch/arm64/kvm/perf.c
arch/arm64/kvm/pmu.c