Skip to contentSkip to conversation

CPUID: pass through one more cache description leaf

PATCH New Tim Deegan 1 participant 1 message Sep 17, 2008

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 CPUID: pass through one more cache description leaf

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.

tools/libxc/xc_cpuid_x86.c +7 -6
diff -r 68f2abfcdf84 tools/libxc/xc_cpuid_x86.c
@@ -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:

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