Skip to contentSkip to conversation

verify TSC sync

PATCH New Dan Magenheimer 1 participant 1 message Dec 18, 2009

lore
Share & tools
lore
#0 lore raw

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.)

xen/arch/x86/cpu/amd.c +0 -2
diff -r 1a911fd65e52 xen/arch/x86/cpu/amd.c
@@ -465,8 +465,6 @@ static void __devinit init_amd(struct cp
 		if (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
diff -r 1a911fd65e52 xen/arch/x86/cpu/intel.c
@@ -212,7 +212,6 @@ static void __devinit init_intel(struct 
 	if (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
diff -r 1a911fd65e52 xen/include/asm-x86/cpufeature.h
@@ -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
diff -r 1a911fd65e52 xen/arch/x86/cpu/amd.c
@@ -465,8 +465,6 @@ static void __devinit init_amd(struct cp
 		if (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
diff -r 1a911fd65e52 xen/arch/x86/cpu/intel.c
@@ -212,7 +212,6 @@ static void __devinit init_intel(struct 
 	if (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
diff -r 1a911fd65e52 xen/include/asm-x86/cpufeature.h
@@ -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