Thread (32 messages) 32 messages, 4 authors, 2026-03-11

Re: [PATCH v6 09/19] KVM: arm64: Write fast path PMU register handlers

From: Marc Zyngier <maz@kernel.org>
Date: 2026-02-12 09:07:54
Also in: kvm, kvmarm, linux-doc, linux-kselftest, linux-perf-users, lkml

On Mon, 09 Feb 2026 22:14:04 +0000,
Colton Lewis [off-list ref] wrote:
We may want a partitioned PMU but not have FEAT_FGT to untrap the
specific registers that would normally be untrapped. Add a handler for
those registers in the fast path so we can still get a performance
boost from partitioning.

The idea is to handle traps for all the PMU registers quickly by
writing directly to the hardware when possible instead of hooking into
the emulated vPMU as the standard handlers in sys_regs.c do.
This seems extremely premature. My assumption is that PMU traps are
rare, and that doing a full exit should be acceptable. Until you
demonstrate the contrary, I don't want this sort of massive bloat in
the most performance-critical path.

"Start walking before you try to run".

	M.

-- 
Without deviation from the norm, progress is not possible.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help