linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] Add KVM support for Intel local MCE
@ 2016-06-03  6:08 Haozhong Zhang
  2016-06-03  6:08 ` [PATCH v1] KVM: VMX: enable guest access to LMCE related MSRs Haozhong Zhang
  0 siblings, 1 reply; 8+ messages in thread
From: Haozhong Zhang @ 2016-06-03  6:08 UTC (permalink / raw)
  To: kvm
  Cc: Paolo Bonzini, rkrcmar, Thomas Gleixner, Ingo Molnar,
	H . Peter Anvin, x86, linux-kernel, Gleb Natapov, Boris Petkov,
	Tony Luck, Ashok Raj, Andi Kleen, Haozhong Zhang

Previous v0 patch can be found at
http://permalink.gmane.org/gmane.linux.kernel/2104347

Changes in v1:
 * Change macro KVM_MCE_CAP_SUPPORTED to variable kvm_mce_cap_supported.
 * Include LMCE capability in kvm_mce_cap_supported only on Intel CPU,
   i.e. LMCE can be enabled only on Intel CPU.
 * Check if LMCE is enabled in guest MSR_IA32_FEATURE_CONTROL when
   handling guest access to MSR_IA32_MCG_EXT_CTL.

This patch along with the corresponding QEMU patch series (sent via
another email with title "[PATCH v3 0/2] Add QEMU support for Intel
local MCE") enables Intel local MCE feature for guest. This KVM patch
handles guest access to LMCE-related MSR (MSR_IA32_MCG_EXT_CTL and
MSR_IA32_FEATURE_CONTROL).

Haozhong Zhang (1):
  KVM: VMX: enable guest access to LMCE related MSRs

 arch/x86/include/asm/kvm_host.h |  3 +++
 arch/x86/kvm/vmx.c              | 27 +++++++++++++++++++++++++--
 arch/x86/kvm/x86.c              | 12 ++++++------
 3 files changed, 34 insertions(+), 8 deletions(-)

-- 
2.8.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-06  0:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-03  6:08 [PATCH v1] Add KVM support for Intel local MCE Haozhong Zhang
2016-06-03  6:08 ` [PATCH v1] KVM: VMX: enable guest access to LMCE related MSRs Haozhong Zhang
2016-06-03 15:34   ` Radim Krčmář
2016-06-05 15:09     ` Haozhong Zhang
2016-06-04 11:01   ` Boris Petkov
2016-06-05 15:14     ` Haozhong Zhang
2016-06-05 19:43       ` Borislav Petkov
2016-06-06  0:12         ` Haozhong Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).