[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] ACPI: Grant access of MSR_IA32_THERM_CONTROL MSR to dom0
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1221148273 -3600 # Node ID a5cc38391afb16af6bdae32c5a5f4f9a3a236987 # Parent d8ce41b79ecc74c00797d73caa56dbdaf02bbd66 ACPI: Grant access of MSR_IA32_THERM_CONTROL MSR to dom0 The purpose is to support dom0 throttling control via MSR. Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx> --- xen/arch/x86/traps.c | 12 ++++++++++++ 1 files changed, 12 insertions(+) diff -r d8ce41b79ecc -r a5cc38391afb xen/arch/x86/traps.c --- a/xen/arch/x86/traps.c Thu Sep 11 16:50:04 2008 +0100 +++ b/xen/arch/x86/traps.c Thu Sep 11 16:51:13 2008 +0100 @@ -2154,6 +2154,12 @@ static int emulate_privileged_op(struct if ( wrmsr_safe(regs->ecx, eax, edx) != 0 ) goto fail; break; + case MSR_IA32_THERM_CONTROL: + if ( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ) + goto fail; + if ( wrmsr_safe(regs->ecx, eax, edx) != 0 ) + goto fail; + break; default: if ( wrmsr_hypervisor_regs(regs->ecx, eax, edx) ) break; @@ -2229,6 +2235,12 @@ static int emulate_privileged_op(struct regs->eax |= MSR_IA32_MISC_ENABLE_BTS_UNAVAIL | MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL | MSR_IA32_MISC_ENABLE_XTPR_DISABLE; + break; + case MSR_IA32_THERM_CONTROL: + if ( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ) + goto fail; + if ( rdmsr_safe(regs->ecx, regs->eax, regs->edx) ) + goto fail; break; default: if ( rdmsr_hypervisor_regs(regs->ecx, &l, &h) ) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |