KVM: arm64: Reenable pmu in Protected Mode
authorFuad Tabba <tabba@google.com>
Tue, 10 May 2022 09:57:10 +0000 (09:57 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 15 May 2022 10:26:41 +0000 (11:26 +0100)
commit722625c6f4c5b6a9953d6af04c7bb1a6e12830b3
tree9668a3a118372d2b4514fb81cc0a7fbfd260d4b3
parent84d751a019a9792f5b4884e1d598b603c360ec22
KVM: arm64: Reenable pmu in Protected Mode

Now that the pmu code does not access hyp data, reenable it in
protected mode.

Once fully supported, protected VMs will not have pmu support,
since that could leak information. However, non-protected VMs in
protected mode should have pmu support if available.

Signed-off-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220510095710.148178-5-tabba@google.com
arch/arm64/kvm/pmu-emul.c