verify TSC sync
PATCH 1/1 verify TSC sync
Verify TSC sync even on systems with constant and non-stop TSC. We now reserve X86_FEATURE_TSC_RELIABLE for those systems that have been verified.
For the record... Jeremy was right! (there, I said it ;-)
See linux patch described here:
http://patchwork.kernel.org/patch/68397/
(Note, the bulk of this patch is moving 100 lines within the same file to avoid forward references to warp check code.)
Signed-off-by Dan Magenheimer <[email protected]>
xen/arch/x86/cpu/amd.c +0 -2
@@ -465,8 +465,6 @@ static void __devinit init_amd(struct cpif (c->x86_power & (1 <<8 )) {set_bit (X86_FEATURE_CONSTANT_TSC , c->x86_capability);set_bit (X86_FEATURE_NONSTOP_TSC , c->x86_capability); -if (c->x86 !=0x11 ) -set_bit (X86_FEATURE_TSC_RELIABLE , c->x86_capability); } }
xen/arch/x86/cpu/intel.c +0 -1
@@ -212,7 +212,6 @@ static void __devinit init_intel(structif (cpuid_edx (0x80000007 ) & (1u <<8 )) {set_bit (X86_FEATURE_CONSTANT_TSC , c->x86_capability);set_bit (X86_FEATURE_NONSTOP_TSC , c->x86_capability); -set_bit (X86_FEATURE_TSC_RELIABLE , c->x86_capability); }if ((c->cpuid_level >=0x00000006 ) && (cpuid_eax (0x00000006 ) & (1u <<2 )))
xen/arch/x86/time.c +118 -113
266 lines not on this page · raw message
xen/include/asm-x86/cpufeature.h +1 -0
@@ -132,6 +132,7 @@#define cpu_has (c, bit) test_bit(bit, (c)->x86_capability)#define boot_cpu_has (bit) test_bit(bit, boot_cpu_data.x86_capability) +#define set_boot_cpu_bit (bit) set_bit(bit, boot_cpu_data.x86_capability)#ifdef __i386__#define cpu_has_vme boot_cpu_has(X86_FEATURE_VME)
xen/arch/x86/cpu/amd.c +0 -2
@@ -465,8 +465,6 @@ static void __devinit init_amd(struct cpif (c->x86_power & (1 <<8 )) {set_bit (X86_FEATURE_CONSTANT_TSC , c->x86_capability);set_bit (X86_FEATURE_NONSTOP_TSC , c->x86_capability); -if (c->x86 !=0x11 ) -set_bit (X86_FEATURE_TSC_RELIABLE , c->x86_capability); } }
xen/arch/x86/cpu/intel.c +0 -1
@@ -212,7 +212,6 @@ static void __devinit init_intel(structif (cpuid_edx (0x80000007 ) & (1u <<8 )) {set_bit (X86_FEATURE_CONSTANT_TSC , c->x86_capability);set_bit (X86_FEATURE_NONSTOP_TSC , c->x86_capability); -set_bit (X86_FEATURE_TSC_RELIABLE , c->x86_capability); }if ((c->cpuid_level >=0x00000006 ) && (cpuid_eax (0x00000006 ) & (1u <<2 )))
xen/arch/x86/time.c +118 -113
266 lines not on this page · raw message
xen/include/asm-x86/cpufeature.h +1 -0
@@ -132,6 +132,7 @@#define cpu_has (c, bit) test_bit(bit, (c)->x86_capability)#define boot_cpu_has (bit) test_bit(bit, boot_cpu_data.x86_capability) +#define set_boot_cpu_bit (bit) set_bit(bit, boot_cpu_data.x86_capability)#ifdef __i386__#define cpu_has_vme boot_cpu_has(X86_FEATURE_VME)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel