x86/crash: force unlock console before printing on kexec crash
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 1 Oct 2019 19:15:57 +0000 (20:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Oct 2019 10:25:05 +0000 (11:25 +0100)
commit7d5247cee21aa38a16c4b21bc9243eda70c8aebd
tree4ee946205465c374ba696b734cc4cd177c1855f8
parent3b53b892915fdb87ded61dc3a9233ce1435af4ec
x86/crash: force unlock console before printing on kexec crash

There is a small window where shootdown NMI might come to a CPU
(e.g. in serial interrupt handler) where console lock is taken. In order
not to leave following console prints waiting infinitely for shot down
CPUs to free the lock - force unlock the console.

The race has been frequently observed while crashing nested Xen in
an HVM domain.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/crash.c