Allow Dom0 to read patchlevel MSR
PATCH 1/1 Allow Dom0 to read patchlevel MSR
Hi,
Allow Dom0 to read microcode patchlevel MSR.
Solaris needs this.
Signature · 12 lines
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
xen/arch/x86/traps.c +6 -0
@@ -2242,6 +2242,12 @@ static int emulate_privileged_op(structif (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) ) {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Christoph Egger
Hi,
Allow Dom0 to read microcode patchlevel MSR.
Solaris needs this.Signed-off-by Christoph Egger <[email protected]>
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
Quoted 6 lines · On Tuesday 16 September 2008 14:15:10 Keir Fraser wrote:
Quoted 5 lines · Christoph Egger
Hi,
Allow Dom0 to read microcode patchlevel MSR.
Solaris needs this.
Quoted 7 lines
Quoted 1 line
Signed-off-by Christoph Egger <[email protected]>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.
Signature · 12 lines
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