KVM: VMX: enable guest access to LMCE related MSRs
authorAshok Raj <ashok.raj@intel.com>
Wed, 22 Jun 2016 06:59:56 +0000 (14:59 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jun 2016 17:17:29 +0000 (19:17 +0200)
commitc45dcc71b794b5a346a43ad83bdcfac2138f0a2c
tree7a8663f19338efa80fff793837d81ad5bb463d2a
parent37e4c997dadf713d5b9cb88a801eb38d61a2aefc
KVM: VMX: enable guest access to LMCE related MSRs

On Intel platforms, this patch adds LMCE to KVM MCE supported
capabilities and handles guest access to LMCE related MSRs.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
[Haozhong: macro KVM_MCE_CAP_SUPPORTED => variable kvm_mce_cap_supported
           Only enable LMCE on Intel platform
           Check MSR_IA32_FEATURE_CONTROL when handling guest
             access to MSR_IA32_MCG_EXT_CTL]
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c