From: Tim Deegan Subject: [PATCH] Extend the HVM CPUID whitelist to include Intel's AES-NI intructions Date: Tue, 25 May 2010 15:50:11 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5143197351072925871==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============5143197351072925871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Signed-off-by: Tim Deegan --===============5143197351072925871== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-unstable.hg.patch" # HG changeset patch # User Tim Deegan # Date 1274798636 -3600 # Node ID e823c66bf4310c874a7a7158c42586f4d535687c # Parent a723c31e10d17de54a5cee1024e01f600ba031cd Extend the HVM CPUID whitelist to include Intel's AES-NI intructions. Signed-off-by: Tim Deegan diff -r a723c31e10d1 -r e823c66bf431 tools/libxc/xc_cpufeature.h --- a/tools/libxc/xc_cpufeature.h Tue May 25 15:43:51 2010 +0100 +++ b/tools/libxc/xc_cpufeature.h Tue May 25 15:43:56 2010 +0100 @@ -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 */ diff -r a723c31e10d1 -r e823c66bf431 tools/libxc/xc_cpuid_x86.c --- a/tools/libxc/xc_cpuid_x86.c Tue May 25 15:43:51 2010 +0100 +++ b/tools/libxc/xc_cpuid_x86.c Tue May 25 15:43:56 2010 +0100 @@ -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); --===============5143197351072925871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============5143197351072925871==--