ia64/xen-unstable

changeset 17580:777f294e3be8

x86, Intel: Make only EST feature visible to dom0 to enable Cx-state
logic. There should be no need to make MWAIT visible.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 06 10:25:34 2008 +0100 (2008-05-06)
parents d5589865bfce
children e6f20d5ed5fe
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Tue May 06 10:19:10 2008 +0100
     1.2 +++ b/xen/arch/x86/traps.c	Tue May 06 10:25:34 2008 +0100
     1.3 @@ -713,8 +713,7 @@ static int emulate_forced_invalid_op(str
     1.4          __clear_bit(X86_FEATURE_PBE, &d);
     1.5  
     1.6          __clear_bit(X86_FEATURE_DTES64 % 32, &c);
     1.7 -        if ( !IS_PRIV(current->domain) )
     1.8 -            __clear_bit(X86_FEATURE_MWAIT % 32, &c);
     1.9 +        __clear_bit(X86_FEATURE_MWAIT % 32, &c);
    1.10          __clear_bit(X86_FEATURE_DSCPL % 32, &c);
    1.11          __clear_bit(X86_FEATURE_VMXE % 32, &c);
    1.12          __clear_bit(X86_FEATURE_SMXE % 32, &c);
    1.13 @@ -2148,9 +2147,8 @@ static int emulate_privileged_op(struct 
    1.14          case MSR_IA32_MISC_ENABLE:
    1.15              if ( rdmsr_safe(regs->ecx, regs->eax, regs->edx) )
    1.16                  goto fail;
    1.17 -            regs->eax &= ~MSR_IA32_MISC_ENABLE_PERF_AVAIL;
    1.18 -            if ( !IS_PRIV(current->domain) )
    1.19 -                regs->eax &= ~MSR_IA32_MISC_ENABLE_MONITOR_ENABLE;
    1.20 +            regs->eax &= ~(MSR_IA32_MISC_ENABLE_PERF_AVAIL |
    1.21 +                           MSR_IA32_MISC_ENABLE_MONITOR_ENABLE);
    1.22              regs->eax |= MSR_IA32_MISC_ENABLE_BTS_UNAVAIL |
    1.23                           MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL |
    1.24                           MSR_IA32_MISC_ENABLE_XTPR_DISABLE;