aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/cpufeature.h
diff options
context:
space:
mode:
authorSheng Yang <sheng.yang@intel.com>2008-09-10 06:53:34 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-10 08:00:56 -0400
commite38e05a85828dac23540cd007df5f20985388afc (patch)
tree63bd7a87dc991772af73cf3e406166e79e8fcb63 /include/asm-x86/cpufeature.h
parent315a6558f30a264c88274fa70626615d1c7851c7 (diff)
x86: extended "flags" to show virtualization HW feature in /proc/cpuinfo
The hardware virtualization technology evolves very fast. But currently it's hard to tell if your CPU support a certain kind of HW technology without digging into the source code. The patch add a new catagory in "flags" under /proc/cpuinfo. Now "flags" can indicate the (important) HW virtulization features the CPU supported as well. Current implementation just cover Intel VMX side. Signed-off-by: Sheng Yang <sheng.yang@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/cpufeature.h')
-rw-r--r--include/asm-x86/cpufeature.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-x86/cpufeature.h b/include/asm-x86/cpufeature.h
index 7ac4d93d20ed..8d45690bef5f 100644
--- a/include/asm-x86/cpufeature.h
+++ b/include/asm-x86/cpufeature.h
@@ -6,7 +6,7 @@
6 6
7#include <asm/required-features.h> 7#include <asm/required-features.h>
8 8
9#define NCAPINTS 8 /* N 32-bit words worth of info */ 9#define NCAPINTS 9 /* N 32-bit words worth of info */
10 10
11/* 11/*
12 * Note: If the comment begins with a quoted string, that string is used 12 * Note: If the comment begins with a quoted string, that string is used
@@ -150,6 +150,13 @@
150 */ 150 */
151#define X86_FEATURE_IDA (7*32+ 0) /* Intel Dynamic Acceleration */ 151#define X86_FEATURE_IDA (7*32+ 0) /* Intel Dynamic Acceleration */
152 152
153/* Virtualization flags: Linux defined */
154#define X86_FEATURE_TPR_SHADOW (8*32+ 0) /* Intel TPR Shadow */
155#define X86_FEATURE_VNMI (8*32+ 1) /* Intel Virtual NMI */
156#define X86_FEATURE_FLEXPRIORITY (8*32+ 2) /* Intel FlexPriority */
157#define X86_FEATURE_EPT (8*32+ 3) /* Intel Extended Page Table */
158#define X86_FEATURE_VPID (8*32+ 4) /* Intel Virtual Processor ID */
159
153#if defined(__KERNEL__) && !defined(__ASSEMBLY__) 160#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
154 161
155#include <linux/bitops.h> 162#include <linux/bitops.h>