[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232119932 0
# Node ID 3c9b66b1798dd920a49d9511176aa0c03af9bc00
# Parent  845aa241e1633b3dadfd4589bf6c7010ca5fd35b
x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq.

Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
---
 xen/arch/x86/traps.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 845aa241e163 -r 3c9b66b1798d xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Fri Jan 16 15:12:12 2009 +0000
+++ b/xen/arch/x86/traps.c      Fri Jan 16 15:32:12 2009 +0000
@@ -2178,6 +2178,8 @@ static int emulate_privileged_op(struct 
             if ( wrmsr_safe(MSR_FAM10H_MMIO_CONF_BASE, eax, edx) != 0 )
                 goto fail;
             break;
+        case MSR_IA32_MPERF:
+        case MSR_IA32_APERF:
         case MSR_IA32_PERF_CTL:
             if ( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL )
                 goto fail;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.