Displaying 1 result from an estimated 1 matches for "xen_cpuid_signature_ebx".
2011 Jul 04
0
[PATCH] Don''t expose CPUID time leaf when not using PVRDTSCP
...base;
- if ( idx > 3 )
+
+ limit = (d->arch.tsc_mode < TSC_MODE_PVRDTSCP) ? 2 : 3;
+
+ if ( idx > limit )
return 0;
switch ( idx )
{
case 0:
- *eax = base + 3; /* Largest leaf */
+ *eax = base + limit; /* Largest leaf */
*ebx = XEN_CPUID_SIGNATURE_EBX;
*ecx = XEN_CPUID_SIGNATURE_ECX;
*edx = XEN_CPUID_SIGNATURE_EDX;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel