]> 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)
commit8887151d3412c74fb6b3a411d461418464126a51
tree9668a3a118372d2b4514fb81cc0a7fbfd260d4b3
parent23d05a936913d46aea27b300582f67eb49d1a620
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