]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Reprogram PMU events affected by nested transition
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 18:25:59 +0000 (18:25 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 19:00:41 +0000 (19:00 +0000)
commitae323e035801def145776dddf46c01ca1b90d21d
tree694aeedb349a8a4fd1d005922760bd09b3b206bf
parent8a34979030f6bcb713476ae485a58f5d8e96ebea
KVM: arm64: nv: Reprogram PMU events affected by nested transition

Start reprogramming PMU events at nested boundaries now that everything
is in place to handle the EL2 event filter. Only repaint events where
the filter differs between EL1 and EL2 as a slight optimization.

PMU now 'works' for nested VMs, albeit slow.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241025182559.3364829-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/pmu-emul.c
include/kvm/arm_pmu.h