ia64/xen-unstable

changeset 19056:3c9b66b1798d

x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 16 15:32:12 2009 +0000 (2009-01-16)
parents 845aa241e163
children c1320922d05e
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Fri Jan 16 15:12:12 2009 +0000
     1.2 +++ b/xen/arch/x86/traps.c	Fri Jan 16 15:32:12 2009 +0000
     1.3 @@ -2178,6 +2178,8 @@ static int emulate_privileged_op(struct 
     1.4              if ( wrmsr_safe(MSR_FAM10H_MMIO_CONF_BASE, eax, edx) != 0 )
     1.5                  goto fail;
     1.6              break;
     1.7 +        case MSR_IA32_MPERF:
     1.8 +        case MSR_IA32_APERF:
     1.9          case MSR_IA32_PERF_CTL:
    1.10              if ( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL )
    1.11                  goto fail;