public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] x86: Use static_call for three smp_ops methods
@ 2025-12-22 20:14 Eric Dumazet
  2025-12-22 20:14 ` [PATCH 1/3] x86/smp: Use static_call for arch_send_call_function_single_ipi() Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Eric Dumazet @ 2025-12-22 20:14 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	Peter Zijlstra, x86, H . Peter Anvin
  Cc: linux-kernel, Eric Dumazet, Eric Dumazet

Busy hosts with RFS enabled can send more than 6,000,000 IPI
per second. arch_send_call_function_single_ipi() is currently
using an indirect call (because Xen can override the target).

Indirect calls are expensive on some platforms with retpoline.

This series converts three smp_ops methods to static_call
infrastructure to remove common indirect calls.

Eric Dumazet (3):
  x86/smp: Use static_call for arch_send_call_function_single_ipi()
  x86/smp: Use static_call for arch_smp_send_reschedule()
  x86/smp: Use static_call for arch_send_call_function_ipi()

 arch/x86/include/asm/smp.h | 23 +++++++++++++++++------
 arch/x86/kernel/smp.c      | 19 +++++++++++++++++++
 arch/x86/xen/smp_hvm.c     |  1 +
 arch/x86/xen/smp_pv.c      |  1 +
 4 files changed, 38 insertions(+), 6 deletions(-)

-- 
2.52.0.351.gbe84eed79e-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-16 21:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-22 20:14 [PATCH 0/3] x86: Use static_call for three smp_ops methods Eric Dumazet
2025-12-22 20:14 ` [PATCH 1/3] x86/smp: Use static_call for arch_send_call_function_single_ipi() Eric Dumazet
2026-01-16 21:22   ` [tip: x86/core] " tip-bot2 for Eric Dumazet
2025-12-22 20:14 ` [PATCH 2/3] x86/smp: Use static_call for arch_smp_send_reschedule() Eric Dumazet
2026-01-16 21:22   ` [tip: x86/core] " tip-bot2 for Eric Dumazet
2025-12-22 20:14 ` [PATCH 3/3] x86/smp: Use static_call for arch_send_call_function_ipi() Eric Dumazet
2026-01-16 21:21   ` [tip: x86/core] " tip-bot2 for Eric Dumazet
2026-01-08 11:51 ` [PATCH 0/3] x86: Use static_call for three smp_ops methods Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox