Skip to contentSkip to conversation

Extend the HVM CPUID whitelist to include Intel's AES-NI intructions

PATCH New Tim Deegan 1 participant 1 message May 25, 2010

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 Extend the HVM CPUID whitelist to include Intel's AES-NI intructions

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1274798636 -3600
# Node ID e823c66bf4310c874a7a7158c42586f4d535687c
# Parent a723c31e10d17de54a5cee1024e01f600ba031cd
Extend the HVM CPUID whitelist to include Intel's AES-NI intructions.

tools/libxc/xc_cpufeature.h +1 -0
diff -r a723c31e10d1 -r e823c66bf431 tools/libxc/xc_cpufeature.h
@@ -83,6 +83,7 @@
 #define X86_FEATURE_SSE4_1	(4*32+19) /* Streaming SIMD Extensions 4.1 */
 #define X86_FEATURE_SSE4_2	(4*32+20) /* Streaming SIMD Extensions 4.2 */
 #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_HYPERVISOR	(4*32+31) /* Running under some hypervisor */
 
tools/libxc/xc_cpuid_x86.c +2 -1
diff -r a723c31e10d1 -r e823c66bf431 tools/libxc/xc_cpuid_x86.c
@@ -190,7 +190,8 @@
                     bitmaskof(X86_FEATURE_CX16) |
                     bitmaskof(X86_FEATURE_SSE4_1) |
                     bitmaskof(X86_FEATURE_SSE4_2) |
-                    bitmaskof(X86_FEATURE_POPCNT));
+                    bitmaskof(X86_FEATURE_POPCNT) |
+                    bitmaskof(X86_FEATURE_AES));
 
         regs[2] |= bitmaskof(X86_FEATURE_HYPERVISOR);
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel