Skip to content

Make nmi_shootdown_cpus() usable by non-kdump code

Eduardo Habkost kexec kvm lkml 1 version Applied

Status from this message: applied them to tip/x86/crashdump, thanks Eduardo!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8x86 kdump: Extract kdump-specific code from crash_nmi_callback()arch/x86/kernel/crash.c+20 -110 replies
2/8x86 kdump: Move crashing_cpu assignment to nmi_shootdown_cpus()arch/x86/kernel/crash.c+5 -30 replies
3/8x86 kdump: Create kdump_nmi_shootdown_cpus()arch/x86/kernel/crash.c+9 -20 replies
4/8x86 kdump: Make kdump_nmi_callback() a function ptr on crash_nmi_callback()arch/x86/kernel/crash.c+8 -30 replies
5/8x86 kdump: Make nmi_shootdown_cpus() non-staticarch/x86/include/asm/reboot.h arch/x86/kernel/crash.c+6 -20 replies
6/8x86: Move nmi_shootdown_cpus() to reboot.carch/x86/kernel/crash.c arch/x86/kernel/reboot.c+83 -760 replies
7/8x86: Make nmi_shootdown_cpus() available on !SMP and !X86_LOCAL_APICarch/x86/kernel/reboot.c+12 -10 replies
8/8x86: Disable IRQs before doing anything on nmi_shootdown_cpus()arch/x86/kernel/reboot.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Make nmi_shootdown_cpus() usable by non-kdump code

Hi, Ingo,

As tip/master is a moving target, I am splitting the previous kdump/reboot virtualization-disable code series[1] into smaller series so the simpler parts can be included sooner. This first series is just for making nmi_shootdown_cpus() usable by non-kdump code, by moving their generic parts to reboot.c.

They are exactly the same patches I've sent as 01-08 in the previous series.

The NMI IPIs method used by nmi_shootdown_cpus() is the only way we can make sure VMX is disabled on all CPUs before rebooting, on emergency_restart(), because CPUs may have IRQs disabled. That's why I will reuse nmi_shootdown_cpus() for the emergency_restart code when VMX is enabled.

The virtualization-specific parts should come soon, after I implement the suggestions by Eric and Avi, by making the virtualization-disabling functions inline so they can be used directly by the core code (instead of using the function pointer tricks from my previous series).

[1] http://marc.info/?l=linux-kernel&m=122591590923455&w=2

Signature · 1 line
Eduardo