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)
commit88865beca90621ae33217d5f23664d382f99205a
tree7c3b9678b922c4699d985dd3dd27919da6340ba0
parentd7eec2360e389cc877a76c2b098f7b745007d2b2
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