Re: [Xen-devel] [PATCH v2 08/12] x86/vmce: enable injecting LMCE to guest on Intel host

2017-03-22 Thread Haozhong Zhang
On 03/20/17 10:25 -0600, Jan Beulich wrote: > >>> On 17.03.17 at 07:46, wrote: > > @@ -88,18 +89,31 @@ mc_memerr_dhandler(struct mca_binfo *binfo, > > goto vmce_failed; > > } > > > > -if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL || > > -

Re: [Xen-devel] [PATCH v2 08/12] x86/vmce: enable injecting LMCE to guest on Intel host

2017-03-20 Thread Jan Beulich
>>> On 17.03.17 at 07:46, wrote: > @@ -88,18 +89,31 @@ mc_memerr_dhandler(struct mca_binfo *binfo, > goto vmce_failed; > } > > -if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL || > -global->mc_vcpuid == XEN_MC_VCPUID_INVA

[Xen-devel] [PATCH v2 08/12] x86/vmce: enable injecting LMCE to guest on Intel host

2017-03-16 Thread Haozhong Zhang
Inject LMCE to guest if the host MCE is LMCE and the affected vcpu is known. Otherwise, broadcast MCE to all vcpus on Intel host. Signed-off-by: Haozhong Zhang --- Cc: Jan Beulich Cc: Andrew Cooper Changes in v2: * Add comment for a check in mc_memerr_dhandler(). * Add an ASSERT for vmce_vcp