]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Mask out filtered events in PCMEID{0,1}_EL1
authorMarc Zyngier <maz@kernel.org>
Thu, 12 Mar 2020 16:11:24 +0000 (16:11 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 29 Sep 2020 13:19:39 +0000 (14:19 +0100)
commit2fdd1c292f71d7552fdce4823c1d095e6a0f99ab
tree7c3b9678b922c4699d985dd3dd27919da6340ba0
parent179a3d2b5991f55bda854cfd36c9b1ce4992d1b7
KVM: arm64: Mask out filtered events in PCMEID{0,1}_EL1

As we can now hide events from the guest, let's also adjust its view of
PCMEID{0,1}_EL1 so that it can figure out why some common events are not
counting as they should.

The astute user can still look into the TRM for their CPU and find out
they've been cheated, though. Nobody's perfect.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/pmu-emul.c
arch/arm64/kvm/sys_regs.c
include/kvm/arm_pmu.h