From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] Allow Dom0 to read patchlevel MSR Date: Tue, 16 Sep 2008 14:06:54 +0200 Message-ID: <200809161406.55187.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_fF6zIUF0NP9jpZr" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_fF6zIUF0NP9jpZr Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Allow Dom0 to read microcode patchlevel MSR. Solaris needs this. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_fF6zIUF0NP9jpZr Content-Type: text/x-diff; charset="us-ascii"; name="xen_microcode_msr.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_microcode_msr.diff" diff -r 087008dfb005 xen/arch/x86/traps.c --- a/xen/arch/x86/traps.c Mon Sep 15 17:10:43 2008 +0100 +++ b/xen/arch/x86/traps.c Tue Sep 16 13:57:31 2008 +0200 @@ -2242,6 +2242,12 @@ static int emulate_privileged_op(struct if ( rdmsr_safe(regs->ecx, regs->eax, regs->edx) ) goto fail; break; + case MSR_AMD_PATCHLEVEL: + if ( boot_cpu_data.x86_vendor != X86_VENDOR_AMD ) + goto fail; + if ( rdmsr_safe(regs->ecx, regs->eax, regs->edx) ) + goto fail; + break; default: if ( rdmsr_hypervisor_regs(regs->ecx, &l, &h) ) { --Boundary-00=_fF6zIUF0NP9jpZr 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.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_fF6zIUF0NP9jpZr--