aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2013-05-24 15:33:27 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-05-30 09:24:14 +0100
commit9fa437d084c521dabb5b6582fee3316e8cc6e2a3 (patch)
treebda792b6c43e65573b6268e7e2d11beb39d7b298 /tools/libxl
parentb339d34409a8d2c1083e2c362ef14c8fdcd81106 (diff)
downloadxen-9fa437d084c521dabb5b6582fee3316e8cc6e2a3.tar.gz
xen-9fa437d084c521dabb5b6582fee3316e8cc6e2a3.tar.bz2
xen-9fa437d084c521dabb5b6582fee3316e8cc6e2a3.zip
libxl: use Linux-compatible names for sse4 cpuid features
Linux uses sse4_1 and sse4_2, but at the moment libxl uses '.' instead of '_'. This makes it confusing for people looking in Linux's /proc/cpuinfo to disable features. Add the Linux feature names, keeping the old ones for compatability. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Campbell <ian.camppbell@citrix.com>
Diffstat (limited to 'tools/libxl')
-rw-r--r--tools/libxl/libxl_cpuid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/libxl_cpuid.c b/tools/libxl/libxl_cpuid.c
index d17fdd670a..e1c406c540 100644
--- a/tools/libxl/libxl_cpuid.c
+++ b/tools/libxl/libxl_cpuid.c
@@ -99,8 +99,11 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str)
{"popcnt", 0x00000001, NA, CPUID_REG_ECX, 23, 1},
{"movbe", 0x00000001, NA, CPUID_REG_ECX, 22, 1},
{"x2apic", 0x00000001, NA, CPUID_REG_ECX, 21, 1},
+ /* Linux uses sse4_{1,2}. Keep sse4.{1,2} for compatibility */
{"sse4.2", 0x00000001, NA, CPUID_REG_ECX, 20, 1},
+ {"sse4_2", 0x00000001, NA, CPUID_REG_ECX, 20, 1},
{"sse4.1", 0x00000001, NA, CPUID_REG_ECX, 19, 1},
+ {"sse4_1", 0x00000001, NA, CPUID_REG_ECX, 19, 1},
{"dca", 0x00000001, NA, CPUID_REG_ECX, 18, 1},
{"pdcm", 0x00000001, NA, CPUID_REG_ECX, 15, 1},
{"xtpr", 0x00000001, NA, CPUID_REG_ECX, 14, 1},