summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2025-03-05 23:26:29 +0300
committerOliver Upton <oliver.upton@linux.dev>2025-03-11 22:52:32 +0300
commit46573d944f00f440dc794fa87ebbdb0dd9dbf691 (patch)
tree5b1fea9e5b352f4d80e7a5b96ef1de85043eda62 /lib/test_fortify/write_overflow-memcpy.c
parent75ecffc361bbc85696c084f3d3c73eb207386e3f (diff)
downloadlinux-46573d944f00f440dc794fa87ebbdb0dd9dbf691.tar.xz
drivers/perf: apple_m1: Support host/guest event filtering
The PMU appears to have a separate register for filtering 'guest' exception levels (i.e. EL1 and !ELIsInHost(EL0)) which has the same layout as PMCR1_EL1. Conveniently, there exists a VHE register alias (PMCR1_EL12) that can be used to configure it. Support guest events by programming the EL12 register with the intended guest kernel/userspace filters. Limit support for guest events to VHE (i.e. kernel running at EL2), as it avoids involving KVM to context switch PMU registers. VHE is the only supported mode on M* parts anyway, so this isn't an actual feature limitation. Tested-by: Janne Grunau <j@jannau.net> Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20250305202641.428114-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions