Re: [Xen-devel] [PATCH 13/19] x86/mce_intel: detect and enable LMCE on Intel host

2017-02-22 Thread Jan Beulich
>>> On 23.02.17 at 04:16, wrote: > On 02/22/17 08:10 -0700, Jan Beulich wrote: >> >>> On 17.02.17 at 07:39, wrote: >> > @@ -700,26 +727,31 @@ static void intel_init_mca(struct cpuinfo_x86 *c) >> > >> > first = mce_firstbank(c); >> > >> > +if ( !mce_force_broadcast && (msr_content & M

Re: [Xen-devel] [PATCH 13/19] x86/mce_intel: detect and enable LMCE on Intel host

2017-02-22 Thread Haozhong Zhang
On 02/22/17 08:10 -0700, Jan Beulich wrote: > >>> On 17.02.17 at 07:39, wrote: > > --- a/xen/arch/x86/cpu/mcheck/mce.h > > +++ b/xen/arch/x86/cpu/mcheck/mce.h > > @@ -38,6 +38,7 @@ enum mcheck_type { > > }; > > > > extern uint8_t cmci_apic_vector; > > +extern bool lmce_support; > > > > /* I

Re: [Xen-devel] [PATCH 13/19] x86/mce_intel: detect and enable LMCE on Intel host

2017-02-22 Thread Jan Beulich
>>> On 17.02.17 at 07:39, wrote: > --- a/xen/arch/x86/cpu/mcheck/mce.h > +++ b/xen/arch/x86/cpu/mcheck/mce.h > @@ -38,6 +38,7 @@ enum mcheck_type { > }; > > extern uint8_t cmci_apic_vector; > +extern bool lmce_support; > > /* Init functions */ > enum mcheck_type amd_mcheck_init(struct cpui

[Xen-devel] [PATCH 13/19] x86/mce_intel: detect and enable LMCE on Intel host

2017-02-16 Thread Haozhong Zhang
Enable LMCE if it's supported by the host CPU. If Xen boot parameter "mce_fb = 1" is present, LMCE will be disabled forcibly. Signed-off-by: Haozhong Zhang --- Cc: Christoph Egger Cc: Liu Jinsong Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/cpu/mcheck/mce.h | 1 + xen/arch/x86/c