|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-4.0-testing] x86: Allow dom0 pstate control to acce
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1281686392 -3600
# Node ID 12f1350d4a06e108d4c3807b48d6534599f5f469
# Parent 273fb02cb434d8e96fda9d8e8d2393a31d9f457b
x86: Allow dom0 pstate control to access APERF/MPERF/HWCR MSRs
The current version of the powernow driver uses the APERF/MPEF
and the HWCR MSRs. Add cases in traps.c to let dom0 access
those MSRs.
Signed-off-by: Mark Langsdorf <mark.langsdorf@xxxxxxx>
xen-unstable changeset: 6471b8b71401
xen-unstable date: Fri Aug 13 08:38:35 2010 +0100
---
xen/arch/x86/traps.c | 9 +++++++++
1 files changed, 9 insertions(+)
diff -r 273fb02cb434 -r 12f1350d4a06 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c Fri Aug 13 08:53:26 2010 +0100
+++ b/xen/arch/x86/traps.c Fri Aug 13 08:59:52 2010 +0100
@@ -2220,6 +2220,7 @@ static int emulate_privileged_op(struct
case MSR_K8_PSTATE5:
case MSR_K8_PSTATE6:
case MSR_K8_PSTATE7:
+ case MSR_K8_HWCR:
if ( boot_cpu_data.x86_vendor != X86_VENDOR_AMD )
goto fail;
if ( !is_cpufreq_controller(v->domain) )
@@ -2259,6 +2260,14 @@ static int emulate_privileged_op(struct
break;
case MSR_IA32_MPERF:
case MSR_IA32_APERF:
+ if (( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ) &&
+ ( boot_cpu_data.x86_vendor != X86_VENDOR_AMD ) )
+ goto fail;
+ if ( !is_cpufreq_controller(v->domain) )
+ break;
+ if ( wrmsr_safe(regs->ecx, eax, edx) != 0 )
+ goto fail;
+ break;
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-4.0-testing] x86: Allow dom0 pstate control to access APERF/MPERF/HWCR MSRs,
Xen patchbot-4.0-testing <=
|
|
|
|
|