x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jan 2009 15:32:12 +0000 (15:32 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jan 2009 15:32:12 +0000 (15:32 +0000)
Signed-off-by: Chris Lalancette <clalance@redhat.com>
xen/arch/x86/traps.c

index cd23b9bc50dda4af79bd484123728ffd093570ae..226cc899dad579703c432a03780f9337ba830aac 100644 (file)
@@ -2178,6 +2178,8 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
             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;