From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] MCE: Allow AMD MSRs injected via xen-mceinj Date: Fri, 26 Oct 2012 11:31:53 +0200 Message-ID: <508A5889.8030801@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050805080700050003060106" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --------------050805080700050003060106 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Allow AMD MSRs injected via xen-mceinj Signed-off-by: Christoph Egger -- ---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 --------------050805080700050003060106 Content-Type: text/plain; charset="us-ascii"; name="xen_mce_msrinject.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_mce_msrinject.diff" Content-Description: xen_mce_msrinject.diff 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) --------------050805080700050003060106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------050805080700050003060106--