aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_cpufeature.h
diff options
context:
space:
mode:
authorYang, Wei <wei.y.yang@intel.com>2011-06-14 13:13:18 +0100
committerYang, Wei <wei.y.yang@intel.com>2011-06-14 13:13:18 +0100
commitd3b35446fde62e77d97dc0c8edd9785b352f762c (patch)
tree523c60aedf4084c57db0ca2b3d5c377e66ed592e /tools/libxc/xc_cpufeature.h
parent4e9144664327f34764c5625734cc21d40201ebfb (diff)
downloadxen-d3b35446fde62e77d97dc0c8edd9785b352f762c.tar.gz
xen-d3b35446fde62e77d97dc0c8edd9785b352f762c.tar.bz2
xen-d3b35446fde62e77d97dc0c8edd9785b352f762c.zip
x86: Pass through ERMS CPUID feature for HVM and PV guests
This patch exposes ERMS feature to HVM and PV guests. The REP MOVSB/STOSB instruction can enhance fast strings attempts to move as much of the data with larger size load/stores as possible. Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Diffstat (limited to 'tools/libxc/xc_cpufeature.h')
-rw-r--r--tools/libxc/xc_cpufeature.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_cpufeature.h b/tools/libxc/xc_cpufeature.h
index b1941f9956..96a44ff59f 100644
--- a/tools/libxc/xc_cpufeature.h
+++ b/tools/libxc/xc_cpufeature.h
@@ -126,5 +126,6 @@
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx) */
#define X86_FEATURE_FSGSBASE 0 /* {RD,WR}{FS,GS}BASE instructions */
#define X86_FEATURE_SMEP 7 /* Supervisor Mode Execution Protection */
+#define X86_FEATURE_ERMS 9 /* Enhanced REP MOVSB/STOSB */
#endif /* __LIBXC_CPUFEATURE_H */