]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86/mce: always re-initialize 'severity_cpu' in mcheck_cmn_handler()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 3 May 2017 15:06:33 +0000 (17:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 May 2017 15:06:33 +0000 (17:06 +0200)
mcheck_cmn_handler() does not always set 'severity_cpu' to override
its value taken from previous rounds of MC handling, which will
interfere the current round of MC handling. Always re-initialize it to
clear the historical value.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 6a2c6a68423475cd89a8cc9978554880e5a21b7d
master date: 2017-04-07 15:56:09 +0200

xen/arch/x86/cpu/mcheck/mce.c

index ba79e6756e1512cea1b69d353586da6201b7f56c..1d0f056119d5c4229eb3fb56fd97bf928352d09a 100644 (file)
@@ -537,6 +537,7 @@ void mcheck_cmn_handler(const struct cpu_user_regs *regs)
             mc_panic(ebuf);
         }
         atomic_set(&found_error, 0);
+        atomic_set(&severity_cpu, -1);
     }
     mce_barrier_exit(&mce_trap_bar);