Skip to contentSkip to conversation

x86/Intel: don't probe CPUID faulting on family 0xf CPUs

PATCH In review Jan Beulich 3 participants 3 messages Nov 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/Intel: don't probe CPUID faulting on family 0xf CPUs

These are known to not support the feature, so we can save ourselves from emitting the resulting #GP fault recovery related message (which might worry people looking at the logs).

xen/arch/x86/cpu/intel.c +1 -1
@@ -204,7 +204,7 @@ static void __devinit init_intel(struct 
 		detect_ht(c);
 	}
 
-	if (smp_processor_id() == 0) {
+	if (c == &boot_cpu_data && c->x86 == 6) {
 		if (probe_intel_cpuid_faulting())
 			set_bit(X86_FEATURE_CPUID_FAULTING, c->x86_capability);
 	} else if (boot_cpu_has(X86_FEATURE_CPUID_FAULTING)) {

x86/Intel: don't probe CPUID faulting on family 0xf CPUs

These are known to not support the feature, so we can save ourselves from emitting the resulting #GP fault recovery related message (which might worry people looking at the logs).

xen/arch/x86/cpu/intel.c +1 -1
@@ -204,7 +204,7 @@ static void __devinit init_intel(struct 
 		detect_ht(c);
 	}
 
-	if (smp_processor_id() == 0) {
+	if (c == &boot_cpu_data && c->x86 == 6) {
 		if (probe_intel_cpuid_faulting())
 			set_bit(X86_FEATURE_CPUID_FAULTING, c->x86_capability);
 	} else if (boot_cpu_has(X86_FEATURE_CPUID_FAULTING)) {

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

Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jan Beulich

These are known to not support the feature, so we can save ourselves from emitting the resulting #GP fault recovery related message (which might worry people looking at the logs).

xen/arch/x86/cpu/intel.c static void __devinit init_intel(struct · line 210

Quoted 8 lines
xen/arch/x86/cpu/intel.c +1 -1
@@ -204,7 +204,7 @@ static void __devinit init_intel(struct
 		detect_ht(c);
 	}
 
-	if (smp_processor_id() == 0) {
+	if (c == &boot_cpu_data && c->x86 == 6) {
 		if (probe_intel_cpuid_faulting())
 			set_bit(X86_FEATURE_CPUID_FAULTING, c->x86_capability);
 	} else if (boot_cpu_has(X86_FEATURE_CPUID_FAULTING)) {
Acked-by on v1 1/1
#2 lore raw
In reply to Jan Beulich
Quoted 5 lines · Jan Beulich

These are known to not support the feature, so we can save ourselves from emitting the resulting #GP fault recovery related message (which might worry people looking at the logs).

Quoted 14 lines
xen/arch/x86/cpu/intel.c +1 -1
@@ -204,7 +204,7 @@ static void __devinit init_intel(struct
 detect_ht(c);
 }
 
- if (smp_processor_id() == 0) {
+ if (c == &boot_cpu_data && c->x86 == 6) {
 if (probe_intel_cpuid_faulting())
 set_bit(X86_FEATURE_CPUID_FAULTING, c->x86_capability);
 } else if (boot_cpu_has(X86_FEATURE_CPUID_FAULTING)) {