From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 1/2] KVM: Expose MCE control MSRs to userspace Date: Wed, 7 Jul 2010 14:09:38 +0300 Message-ID: <1278500979-12725-2-git-send-email-avi@redhat.com> References: <1278500979-12725-1-git-send-email-avi@redhat.com> Cc: Marcelo Tosatti , Huang Ying To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:30344 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753127Ab0GGLJo (ORCPT ); Wed, 7 Jul 2010 07:09:44 -0400 In-Reply-To: <1278500979-12725-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Userspace needs to reset and save/restore these MSRs. The MCE banks are not exposed since their number varies from vcpu to vcpu. Signed-off-by: Avi Kivity --- arch/x86/kvm/x86.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 7070b41..1e12cc5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -744,6 +744,8 @@ static unsigned num_msrs_to_save; static u32 emulated_msrs[] = { MSR_IA32_MISC_ENABLE, + MSR_IA32_MCG_STATUS, + MSR_IA32_MCG_CTL, }; static int set_efer(struct kvm_vcpu *vcpu, u64 efer) -- 1.7.1