summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-07 14:09:38 +0300
committerAvi Kivity <avi@redhat.com>2010-08-02 06:40:36 +0300
commit908e75f3e70ca580cc20442cf6780dcc2d0557b7 (patch)
tree75d91303b792e8a176761bbb673a46fc23b44696 /arch
parentaea924f606c309feead37ab5c43f410a08ff3826 (diff)
downloadlinux-908e75f3e70ca580cc20442cf6780dcc2d0557b7.tar.gz
linux-908e75f3e70ca580cc20442cf6780dcc2d0557b7.tar.bz2
linux-908e75f3e70ca580cc20442cf6780dcc2d0557b7.zip
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')
-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 d721e2d81a53..eb55ec55125c 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)