]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/alternatives: Remove the mixed-patching restriction on smp_text_poke_single()
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:48 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
commit8a6a1b4e0ef15dab908a365588e06f23f9c0bad5
treea5a97bc5d05008faa0de9e2aa1ff2de5bb03f4f3
parent0e351aec2b0052d33d6e44ded622223043d4dcd5
x86/alternatives: Remove the mixed-patching restriction on smp_text_poke_single()

At this point smp_text_poke_single(addr, opcode, len, emulate) is equivalent to:

smp_text_poke_batch_add(addr, opcode, len, emulate);
smp_text_poke_batch_finish();

So remove the restriction on mixing single-instruction patching
with multi-instruction patching.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250411054105.2341982-37-mingo@kernel.org
arch/x86/kernel/alternative.c