From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huang Ying Subject: Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest Date: Fri, 08 Oct 2010 10:50:59 +0800 Message-ID: <1286506259.7768.41.camel@yhuang-dev> References: <20101004185447.891324545@redhat.com> <20101004185715.167557459@redhat.com> <4CABD7CC.6030909@jp.fujitsu.com> <20101006160531.GB4277@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Hidetoshi Seto , "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" , Dean Nelson To: Marcelo Tosatti Return-path: Received: from mga03.intel.com ([143.182.124.21]:60048 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042Ab0JHCvD (ORCPT ); Thu, 7 Oct 2010 22:51:03 -0400 In-Reply-To: <20101006160531.GB4277@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2010-10-07 at 00:05 +0800, Marcelo Tosatti wrote: > On Wed, Oct 06, 2010 at 10:58:36AM +0900, Hidetoshi Seto wrote: > > I got some more question: > > > > (2010/10/05 3:54), Marcelo Tosatti wrote: > > > Index: qemu/target-i386/cpu.h > > > =================================================================== > > > --- qemu.orig/target-i386/cpu.h > > > +++ qemu/target-i386/cpu.h > > > @@ -250,16 +250,32 @@ > > > #define PG_ERROR_RSVD_MASK 0x08 > > > #define PG_ERROR_I_D_MASK 0x10 > > > > > > -#define MCG_CTL_P (1UL<<8) /* MCG_CAP register available */ > > > +#define MCG_CTL_P (1ULL<<8) /* MCG_CAP register available */ > > > +#define MCG_SER_P (1ULL<<24) /* MCA recovery/new status bits */ > > > > > > -#define MCE_CAP_DEF MCG_CTL_P > > > +#define MCE_CAP_DEF (MCG_CTL_P|MCG_SER_P) > > > #define MCE_BANKS_DEF 10 > > > > > > > It seems that current kvm doesn't support SER_P, so injecting SRAO > > to guest will mean that guest receives VAL|UC|!PCC and RIPV event > > from virtual processor that doesn't have SER_P. > > Dean also noted this. I don't think it was deliberate choice to not > expose SER_P. Huang? In fact, that should be a BUG. I will fix it as soon as possible. Best Regards, Huang Ying