]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/mce: always re-initialize 'severity_cpu' in mcheck_cmn_handler()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Fri, 7 Apr 2017 13:56:09 +0000 (15:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Apr 2017 13:56:09 +0000 (15:56 +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>
xen/arch/x86/cpu/mcheck/mce.c

index eb85257d890fd806dfd5ec726503376802512c6c..51a10ed11eee906bf42d32b6319df3e94b74ad69 100644 (file)
@@ -526,6 +526,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);