diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c index 6e1d3d3a84..450eecd46b 100644 --- a/xen/arch/x86/crash.c +++ b/xen/arch/x86/crash.c @@ -29,6 +29,7 @@ #include #include #include +#include static cpumask_t waiting_to_crash; static unsigned int crashing_cpu; @@ -154,6 +155,12 @@ static void nmi_shootdown_cpus(void) msecs--; } + /* + * We may have NMI'd another CPU while it was holding the console lock. + * It won't be in a position to release the lock... + */ + console_force_unlock(); + /* Leave a hint of how well we did trying to shoot down the other cpus */ if ( cpumask_empty(&waiting_to_crash) ) printk("Shot down all CPUs\n");