]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Use untraced rd/wrmsr in the MCE offline/crash check
authorThomas Gleixner <tglx@linutronix.de>
Sat, 4 Apr 2020 13:39:13 +0000 (15:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:57 +0000 (15:14 +0200)
commit044af34dbdfa021a22554d3fb26e628dfd4dea19
tree08ad72ed14f1adec1c00ffbb70bda7ab7cbd8e56
parent52c342c40766cc535cca5b87a40a4fb9a1ad17e4
x86/mce: Use untraced rd/wrmsr in the MCE offline/crash check

mce_check_crashing_cpu() is called right at the entry of the MCE
handler. It uses mce_rdmsr() and mce_wrmsr() which are wrappers around
rdmsr() and wrmsr() to handle the MCE error injection mechanism, which is
pointless in this context, i.e. when the MCE hits an offline CPU or the
system is already marked crashing.

The MSR access can also be traced, so use the untraceable variants. This
is also safe vs. XEN paravirt as these MSRs are not affected by XEN PV
modifications.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505135314.426347351@linutronix.de
arch/x86/kernel/cpu/mce/core.c