]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86: hide MWAITX from PV domains
authorJan Beulich <jbeulich@suse.com>
Tue, 13 Oct 2015 15:17:52 +0000 (17:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Oct 2015 15:17:52 +0000 (17:17 +0200)
Since MWAIT is hidden too. (Linux starting with 4.3 is making use of
that feature, and is checking for it without looking at the MWAIT one.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c
xen/include/asm-x86/cpufeature.h

index 07feb6d708b08b6e5229536ac711eff4fae99ead..f1fc7b79d51507318dffe8e7410d4ab400989f6e 100644 (file)
@@ -964,6 +964,7 @@ void pv_cpuid(struct cpu_user_regs *regs)
         __clear_bit(X86_FEATURE_LWP % 32, &c);
         __clear_bit(X86_FEATURE_NODEID_MSR % 32, &c);
         __clear_bit(X86_FEATURE_TOPOEXT % 32, &c);
+        __clear_bit(X86_FEATURE_MWAITX % 32, &c);
         break;
 
     case 0x0000000a: /* Architectural Performance Monitor Features (Intel) */
index c88a6abf3de910d9a39704c5c68196789797d403..39349349b5e61198bebf082044e49b8011bd2f1c 100644 (file)
 #define X86_FEATURE_TBM         (6*32+21) /* trailing bit manipulations */
 #define X86_FEATURE_TOPOEXT     (6*32+22) /* topology extensions CPUID leafs */
 #define X86_FEATURE_DBEXT       (6*32+26) /* data breakpoint extension */
+#define X86_FEATURE_MWAITX      (6*32+29) /* MWAIT extension (MONITORX/MWAITX) */
 
 /* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 7 */
 #define X86_FEATURE_FSGSBASE   (7*32+ 0) /* {RD,WR}{FS,GS}BASE instructions */