]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: MCE: Add MCG_SER_P into KVM_MCE_CAP_SUPPORTED
authorHuang Ying <ying.huang@intel.com>
Fri, 8 Oct 2010 08:24:14 +0000 (16:24 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 8 Oct 2010 20:46:37 +0000 (17:46 -0300)
Now we have MCG_SER_P (and corresponding SRAO/SRAR MCE) support in
kernel and QEMU-KVM, the MCG_SER_P should be added into
KVM_MCE_CAP_SUPPORTED to make all these code really works.

Reported-by: Dean Nelson <dnelson@redhat.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c

index fe3acbc7e550e2fab1d323044859af6f695b5555..7127a134d6fd65a09a9330f38095b39d7cf78299 100644 (file)
@@ -73,7 +73,7 @@
 #define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR)
 
 #define KVM_MAX_MCE_BANKS 32
-#define KVM_MCE_CAP_SUPPORTED MCG_CTL_P
+#define KVM_MCE_CAP_SUPPORTED (MCG_CTL_P | MCG_SER_P)
 
 /* EFER defaults:
  * - enable syscall per default because its emulated by KVM