Browse Source

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>
Avi Kivity 15 năm trước cách đây
mục cha
commit
908e75f3e7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      arch/x86/kvm/x86.c

+ 2 - 0
arch/x86/kvm/x86.c

@@ -744,6 +744,8 @@ static unsigned num_msrs_to_save;
 
 
 static u32 emulated_msrs[] = {
 static u32 emulated_msrs[] = {
 	MSR_IA32_MISC_ENABLE,
 	MSR_IA32_MISC_ENABLE,
+	MSR_IA32_MCG_STATUS,
+	MSR_IA32_MCG_CTL,
 };
 };
 
 
 static int set_efer(struct kvm_vcpu *vcpu, u64 efer)
 static int set_efer(struct kvm_vcpu *vcpu, u64 efer)