Re: [PATCH v4 25/30] context_tracking,x86: Defer kernel text patching IPIs

Sean Christopherson
2025-01-14T21:26:55Z

On Tue, Jan 14, 2025, Valentin Schneider wrote:
> static __always_inline void arch_context_tracking_work(enum ct_work work)
> {
> switch (work) {
> - case CT_WORK_n:
> - // Do work...
> + case CT_WORK_SYNC:
> + sync_core();

Not your bug, but serialize() needs to be __always_inline. Not sure what exactly
caused it to be uninlined, but this is the obvious new usage.

vmlinux.o: warning: objtool: __static_call_update_early+0x4e: call to serialize() leaves .noinstr.text section
vmlinux.o: warning: objtool: ct_work_flush+0x69: call to serialize() leaves .noinstr.text section