]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita989cbe1f57ab38b2349f55cae01a974453a9b6a
tree9668a3a118372d2b4514fb81cc0a7fbfd260d4b3
parentfb24074b4739faa9856fc822a321a368613b16a5
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