summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-10-25 21:23:52 +0300
committerOliver Upton <oliver.upton@linux.dev>2024-10-31 22:00:41 +0300
commit8a34979030f6bcb713476ae485a58f5d8e96ebea (patch)
treebe187bd933e65eeaebeacb592680203379d4445b /rust/helpers/helpers.c
parent16535d55e91f4d55134370e78e2b7f217e2ebc19 (diff)
downloadlinux-8a34979030f6bcb713476ae485a58f5d8e96ebea.tar.xz
KVM: arm64: nv: Apply EL2 event filtering when in hyp context
It hopefully comes as no surprise when I say that vEL2 actually runs at EL1. So, the guest hypervisor's EL2 event filter (NSH) needs to actually be applied to EL1 in the perf event. In addition to this, the disable bit for the guest counter range (HPMD) needs to have the effect of stopping the affected counters. Do exactly that by stuffing ::exclude_kernel with the combined effect of these controls. This isn't quite enough yet, as the backing perf events need to be reprogrammed upon nested ERET/exception entry to remap the effective filter onto ::exclude_kernel. Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20241025182354.3364124-18-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions