From: Igor Druzhinin Date: Fri, 19 Jul 2019 13:07:48 +0000 (+0100) Subject: x86/crash: fix kexec transition breakage X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1872 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f56813f3470c5b4987963c3c41e4fe16b95c5a3f;p=xen.git x86/crash: fix kexec transition breakage Following 6ff560f7f ("x86/SMP: don't try to stop already stopped CPUs") an incorrect condition was placed into kexec transition path leaving crashing CPU always online breaking kdump kernel entering. Correct it by unifying the condition with smp_send_stop(). Signed-off-by: Igor Druzhinin --- diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c index f9772dc2ab..a9f3e1890c 100644 --- a/xen/arch/x86/crash.c +++ b/xen/arch/x86/crash.c @@ -169,7 +169,7 @@ static void nmi_shootdown_cpus(void) */ iommu_crash_shutdown(); - if ( num_online_cpus() > 1 ) + if ( cpu_online(cpu) ) { __stop_this_cpu();