x86/mce: allow mce_barrier_{enter,exit} to return without waiting
authorHaozhong Zhang <haozhong.zhang@intel.com>
Mon, 3 Jul 2017 15:43:45 +0000 (17:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Jul 2017 15:43:45 +0000 (17:43 +0200)
commita7d802bca13489d303749177127089af48844f29
treea56c8ae96f328e0bde290a5647ca05fadfe9ba63
parent106b735df9deffab55603cb9ed4636c067a49d64
x86/mce: allow mce_barrier_{enter,exit} to return without waiting

Add a 'wait' argument to mce_barrier_{enter,exit}() to specify whether
the barrier functions should return immediately without waiting
mce_barrier_{enter,exit}() on other CPUs. This is useful when handling
LMCE, where mce_barrier_{enter,exit} are called only on one CPU.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/barrier.c
xen/arch/x86/cpu/mcheck/barrier.h
xen/arch/x86/cpu/mcheck/mce.c