Re: [Xen-devel] [PATCH v2 04/12] x86/mce: handle LMCE locally

2017-03-21 Thread Haozhong Zhang
On 03/20/17 08:24 -0600, Jan Beulich wrote: > >>> On 17.03.17 at 07:46, wrote: [..] > > @@ -1704,10 +1717,11 @@ static void mce_softirq(void) > > { > > int cpu = smp_processor_id(); > > unsigned int workcpu; > > +bool nowait = !this_cpu(mce_in_process); > > > > mce_printk(MCE

Re: [Xen-devel] [PATCH v2 04/12] x86/mce: handle LMCE locally

2017-03-20 Thread Jan Beulich
>>> On 17.03.17 at 07:46, wrote: > @@ -52,8 +52,8 @@ void mce_barrier_exit(struct mce_softirq_barrier *bar) > } > } > > -void mce_barrier(struct mce_softirq_barrier *bar) > +void mce_barrier(struct mce_softirq_barrier *bar, bool nowait) > { > -mce_barrier_enter(bar); > -mce_barrie

[Xen-devel] [PATCH v2 04/12] x86/mce: handle LMCE locally

2017-03-16 Thread Haozhong Zhang
LMCE is sent to only one CPU thread, so MCE handler, barriers and softirq handler should go without waiting for other CPUs, when handling LMCE. Note LMCE is still broadcast to all vcpus as regular MCE on Intel CPU right now. Signed-off-by: Haozhong Zhang --- Cc: Jan Beulich Cc: Andrew Cooper C