]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8888464d4ee26d96b744259976bab61c83421f9
tree7a8663f19338efa80fff793837d81ad5bb463d2a
parent6f0da896e6940cb187e2dbbfb5364b7270d346a4
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