summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-07 11:09:38 (GMT)
committerAvi Kivity <avi@redhat.com>2010-08-02 03:40:36 (GMT)
commit908e75f3e70ca580cc20442cf6780dcc2d0557b7 (patch)
tree75d91303b792e8a176761bbb673a46fc23b44696 /arch/x86
parentaea924f606c309feead37ab5c43f410a08ff3826 (diff)
downloadlinux-908e75f3e70ca580cc20442cf6780dcc2d0557b7.tar.xz
KVM: Expose MCE control MSRs to userspace
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 <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index d721e2d..eb55ec5 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)