[HVM][SVM] Disable machine check bits in CPUID_1.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 09:02:27 +0000 (10:02 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 09:02:27 +0000 (10:02 +0100)
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen/arch/x86/hvm/svm/svm.c

index f988de00ad3fa3efba3acdf6fac688030fe2a1fb..3a90a27f0d074b2b2bf411218e16d5d64d0af3df 100644 (file)
@@ -996,6 +996,10 @@ static void svm_vmexit_do_cpuid(struct vmcb_struct *vmcb, unsigned long input,
        clear_bit(X86_FEATURE_HT, &edx);  /* clear the hyperthread bit */
        ebx &= 0xFF00FFFF;  /* clear the logical processor count when HTT=0 */
        ebx |= 0x00010000;  /* set to 1 just for precaution */
+
+       /* Disable machine check architecture */
+       clear_bit(X86_FEATURE_MCA, &edx);
+       clear_bit(X86_FEATURE_MCE, &edx);
     }
     else if ( ( input > 0x00000005 ) && ( input < 0x80000000 ) )
     {