From patchwork Tue Jan 5 08:34:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 70947 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o058YE5j016322 for ; Tue, 5 Jan 2010 08:34:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750773Ab0AEIeL (ORCPT ); Tue, 5 Jan 2010 03:34:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750758Ab0AEIeL (ORCPT ); Tue, 5 Jan 2010 03:34:11 -0500 Received: from mga11.intel.com ([192.55.52.93]:22721 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756Ab0AEIeL (ORCPT ); Tue, 5 Jan 2010 03:34:11 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 05 Jan 2010 00:33:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,501,1257148800"; d="scan'208";a="528528398" Received: from yhuang-dev.sh.intel.com (HELO [10.239.13.56]) ([10.239.13.56]) by fmsmga002.fm.intel.com with ESMTP; 05 Jan 2010 00:33:32 -0800 Subject: [BUGFIX] MCE: Fix bug of IA32_MCG_STATUS after system reset From: Huang Ying To: Avi Kivity , Anthony Liguori , Andi Kleen Cc: kvm@vger.kernel.org Date: Tue, 05 Jan 2010 16:34:08 +0800 Message-ID: <1262680448.31401.228.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --- 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); rc = kvm_set_msrs(env, msrs, n); if (rc == -1)