* [PATCH] Allow Dom0 to read patchlevel MSR
@ 2008-09-16 12:06 Christoph Egger
2008-09-16 12:15 ` Keir Fraser
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Egger @ 2008-09-16 12:06 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
Hi,
Allow Dom0 to read microcode patchlevel MSR.
Solaris needs this.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
[-- Attachment #2: xen_microcode_msr.diff --]
[-- Type: text/x-diff, Size: 665 bytes --]
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) )
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Allow Dom0 to read patchlevel MSR
2008-09-16 12:06 [PATCH] Allow Dom0 to read patchlevel MSR Christoph Egger
@ 2008-09-16 12:15 ` Keir Fraser
2008-09-16 12:28 ` Christoph Egger
0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2008-09-16 12:15 UTC (permalink / raw)
To: Christoph Egger, xen-devel
On 16/9/08 13:06, "Christoph Egger" <Christoph.Egger@amd.com> wrote:
>
> Hi,
>
> Allow Dom0 to read microcode patchlevel MSR.
> Solaris needs this.
>
> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
A pointless patch. The default case of the switch statement has equivalent
effect.
I guess I'll keep the MSR labelled there just for documentation in case we
tighten up RDMSR/WRMSR emulation in future.
-- Keir
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Allow Dom0 to read patchlevel MSR
2008-09-16 12:15 ` Keir Fraser
@ 2008-09-16 12:28 ` Christoph Egger
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Egger @ 2008-09-16 12:28 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On Tuesday 16 September 2008 14:15:10 Keir Fraser wrote:
> On 16/9/08 13:06, "Christoph Egger" <Christoph.Egger@amd.com> wrote:
> > Hi,
> >
> > Allow Dom0 to read microcode patchlevel MSR.
> > Solaris needs this.
> >
> > Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
>
> A pointless patch. The default case of the switch statement has equivalent
> effect.
>
> I guess I'll keep the MSR labelled there just for documentation in case we
> tighten up RDMSR/WRMSR emulation in future.
Tnx.
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-16 12:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 12:06 [PATCH] Allow Dom0 to read patchlevel MSR Christoph Egger
2008-09-16 12:15 ` Keir Fraser
2008-09-16 12:28 ` Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.