aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-07 07:09:38 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 23:40:36 -0400
commit908e75f3e70ca580cc20442cf6780dcc2d0557b7 (patch)
tree75d91303b792e8a176761bbb673a46fc23b44696 /arch/x86/kvm/x86.c
parentaea924f606c309feead37ab5c43f410a08ff3826 (diff)
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/kvm/x86.c')
-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;
744 744
745static u32 emulated_msrs[] = { 745static u32 emulated_msrs[] = {
746 MSR_IA32_MISC_ENABLE, 746 MSR_IA32_MISC_ENABLE,
747 MSR_IA32_MCG_STATUS,
748 MSR_IA32_MCG_CTL,
747}; 749};
748 750
749static int set_efer(struct kvm_vcpu *vcpu, u64 efer) 751static int set_efer(struct kvm_vcpu *vcpu, u64 efer)