]> xenbits.xensource.com Git - xen.git/commitdiff
x86: allow AMD MSRs injected via xen-mceinj
authorChristoph Egger <chegger@amazon.de>
Thu, 11 Apr 2013 08:11:44 +0000 (10:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Apr 2013 08:11:44 +0000 (10:11 +0200)
Signed-off-by: Christoph Egger <chegger@amazon.de>
xen/arch/x86/cpu/mcheck/mce.c

index 1c69e4e19423c4bffbfc8a5f85a6f76af611f4e5..a22ea4832253c47ac1dac76af9c3c82d34bb09b4 100644 (file)
@@ -1117,6 +1117,15 @@ static int x86_mc_msrinject_verify(struct xen_mc_msrinject *mci)
             case MSR_IA32_MCG_STATUS:
                 break;
 
+            case MSR_F10_MC4_MISC1:
+            case MSR_F10_MC4_MISC2:
+            case MSR_F10_MC4_MISC3:
+                if (c->x86_vendor != X86_VENDOR_AMD)
+                    reason = "only supported on AMD";
+                else if (c->x86 < 0x10)
+                    reason = "only supported on AMD Fam10h+";
+                break;
+
                 /* MSRs that the HV will take care of */
             case MSR_K8_HWCR:
                 if (c->x86_vendor == X86_VENDOR_AMD)