[PATCH v3 01/22] x86/paravirt: Mark native pv_ops helpers notrace
bot+bpf-ci at kernel.org
bot+bpf-ci at kernel.org
Tue Dec 1 13:48:46 PST 2026
> x86/paravirt: Mark native pv_ops helpers notrace
TL;DR: Design question: Peter Zijlstra's v3 objection to sprinkling notrace on
native pv_ops helpers as unmaintainable looks unresolved; is there an
alternative, or was it settled elsewhere?
> diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h
> --- a/arch/x86/include/asm/desc.h
> +++ b/arch/x86/include/asm/desc.h
[ ... ]
> -static inline void native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate)
> +static inline void notrace native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate)
> {
> memcpy(&idt[entry], gate, sizeof(*gate));
> }
In the v3 discussion, Peter Zijlstra objected to this approach:
I must say.. I hate this with a passion. This is unmaintainable garbage.
Steven Rostedt asked for elaboration and defended the annotations as being
analogous to noinstr, but no further reply from Peter or the author is in
the thread.
Is there an alternative to sprinkling explicit notrace on each of these
native helpers that addresses that maintainability concern, or has the
objection been settled elsewhere?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/46748297297
More information about the linux-arm-kernel
mailing list