diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-07 14:09:38 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:40:36 +0300 |
commit | 908e75f3e70ca580cc20442cf6780dcc2d0557b7 (patch) | |
tree | 75d91303b792e8a176761bbb673a46fc23b44696 /arch/x86/kvm | |
parent | aea924f606c309feead37ab5c43f410a08ff3826 (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')
-rw-r--r-- | 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 d721e2d81a5..eb55ec55125 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) |