From: Tim Deegan Subject: [PATCH] CPUID: pass through one more cache description leaf Date: Wed, 17 Sep 2008 16:54:47 +0100 Message-ID: <20080917155447.GB14746@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="7AUc2qLy4jB3hD7Z" Return-path: Content-Disposition: inline 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 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Add a missing CPUID leaf that contains AMD-specific cache info. Without this, Windows can spin trying to prefetch memory buffers using a stride length of zero. Signed-off-by: Tim Deegan --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=cpuid-amd-cache-info diff -r 68f2abfcdf84 tools/libxc/xc_cpuid_x86.c --- a/tools/libxc/xc_cpuid_x86.c Wed Sep 17 13:32:27 2008 +0100 +++ b/tools/libxc/xc_cpuid_x86.c Wed Sep 17 16:13:09 2008 +0100 @@ -210,12 +210,13 @@ static void xc_cpuid_hvm_policy( regs[1] = regs[2] = regs[3] = 0; break; - case 0x00000002: - case 0x00000004: - case 0x80000002: - case 0x80000003: - case 0x80000004: - case 0x80000006: + case 0x00000002: // Intel cache info + case 0x00000004: // Intel cache info + case 0x80000002: // Processor name string + case 0x80000003: // ... continued + case 0x80000004: // ... continued + case 0x80000005: // AMD L1 cache/TLB info + case 0x80000006: // AMD L2/3 cache/TLB info break; default: --7AUc2qLy4jB3hD7Z 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 --7AUc2qLy4jB3hD7Z--