xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MCE: Allow AMD MSRs injected via xen-mceinj
@ 2012-10-26  9:31 Christoph Egger
  0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2012-10-26  9:31 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]


Allow AMD MSRs injected via xen-mceinj

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_mce_msrinject.diff --]
[-- Type: text/plain, Size: 904 bytes --]

diff -r 7abb25095de0 xen/arch/x86/cpu/mcheck/mce.c
--- a/xen/arch/x86/cpu/mcheck/mce.c	Thu Oct 25 13:15:19 2012 +0200
+++ b/xen/arch/x86/cpu/mcheck/mce.c	Fri Oct 26 09:55:35 2012 +0200
@@ -1145,6 +1121,19 @@ static int x86_mc_msrinject_verify(struc
             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";
+                    break;
+                }
+                if (c->x86 < 0x10) {
+                    reason = "only supported on AMD Family 10h+";
+                    break;
+                }
+                break;
+
                 /* MSRs that the HV will take care of */
             case MSR_K8_HWCR:
                 if (c->x86_vendor == X86_VENDOR_AMD)

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-26  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26  9:31 [PATCH] MCE: Allow AMD MSRs injected via xen-mceinj Christoph Egger

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).