From: Huang Ying Subject: Re: [BUGFIX] MCE: Fix bug of IA32_MCG_STATUS after system reset Date: Wed, 06 Jan 2010 16:22:34 +0800 Message-ID: <1262766154.17852.21.camel@yhuang-dev.sh.intel.com> References: <1262680448.31401.228.camel@yhuang-dev.sh.intel.com> <20100105104402.GA1778@basil.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Anthony Liguori , "kvm@vger.kernel.org" To: Andi Kleen Return-path: Received: from mga01.intel.com ([192.55.52.88]:40295 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754763Ab0AFIWg (ORCPT ); Wed, 6 Jan 2010 03:22:36 -0500 In-Reply-To: <20100105104402.GA1778@basil.fritz.box> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2010-01-05 at 18:44 +0800, Andi Kleen wrote: > > --- a/qemu-kvm-x86.c > > +++ b/qemu-kvm-x86.c > > @@ -1015,6 +1015,7 @@ void kvm_arch_load_regs(CPUState *env) > > #endif > > set_msr_entry(&msrs[n++], MSR_KVM_SYSTEM_TIME, env->system_time_msr); > > set_msr_entry(&msrs[n++], MSR_KVM_WALL_CLOCK, env->wall_clock_msr); > > + set_msr_entry(&msrs[n++], MSR_MCG_STATUS, 0); > > Still need to keep EIPV and possibly RIPV, don't we? It appears that EIPV and RIPV is meaningless outside of MCE exception handler. But I will try to check the real hardware behavior. Best Regards, Huang Ying