x86/Intel: don't probe CPUID faulting on family 0xf CPUs
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Nov 2013 10:00:21 +0000 (11:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Nov 2013 10:00:21 +0000 (11:00 +0100)
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).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Liu Jinsong <jinsong.liu@intel.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/cpu/intel.c

index e85521109cc34e662325184d59dc8dfdeb3f8c1d..27fe762eca34569979cd3b1c326f4cd52a24adde 100644 (file)
@@ -204,7 +204,7 @@ static void __devinit init_intel(struct cpuinfo_x86 *c)
                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)) {