[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86 hvm: exposes AVX to guest.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1288772207 0
# Node ID b3964f2f70e89887fcb333ba06dcf28929582566
# Parent  a3ec4b3b685e05e9890c37be0763b3c33f6dc722
x86 hvm: exposes AVX to guest.

Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
Signed-off-by: Han Weidong <weidong.han@xxxxxxxxx>
---
 tools/libxc/xc_cpufeature.h |    1 +
 tools/libxc/xc_cpuid_x86.c  |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -r a3ec4b3b685e -r b3964f2f70e8 tools/libxc/xc_cpufeature.h
--- a/tools/libxc/xc_cpufeature.h       Wed Nov 03 08:15:20 2010 +0000
+++ b/tools/libxc/xc_cpufeature.h       Wed Nov 03 08:16:47 2010 +0000
@@ -101,6 +101,7 @@
 #define X86_FEATURE_POPCNT     (4*32+23) /* POPCNT instruction */
 #define X86_FEATURE_AES                (4*32+25) /* AES acceleration 
instructions */
 #define X86_FEATURE_XSAVE      (4*32+26) /* XSAVE/XRSTOR/XSETBV/XGETBV */
+#define X86_FEATURE_AVX                (4*32+28) /* Advanced Vector Extensions 
*/
 #define X86_FEATURE_HYPERVISOR (4*32+31) /* Running under some hypervisor */
 
 /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
diff -r a3ec4b3b685e -r b3964f2f70e8 tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c        Wed Nov 03 08:15:20 2010 +0000
+++ b/tools/libxc/xc_cpuid_x86.c        Wed Nov 03 08:16:47 2010 +0000
@@ -195,7 +195,8 @@ static void xc_cpuid_hvm_policy(
                     bitmaskof(X86_FEATURE_SSE4_1) |
                     bitmaskof(X86_FEATURE_SSE4_2) |
                     bitmaskof(X86_FEATURE_POPCNT) |
-                    bitmaskof(X86_FEATURE_AES));
+                    bitmaskof(X86_FEATURE_AES) |
+                    bitmaskof(X86_FEATURE_AVX));
 
         regs[2] |= bitmaskof(X86_FEATURE_HYPERVISOR);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.