From f214ac959a471176e6ea195fb1952429f50ad7de Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 11 Nov 2013 11:00:21 +0100 Subject: [PATCH] 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). Signed-off-by: Jan Beulich Acked-by: Liu Jinsong Acked-by: Keir Fraser --- xen/arch/x86/cpu/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/cpu/intel.c b/xen/arch/x86/cpu/intel.c index e85521109c..27fe762eca 100644 --- a/xen/arch/x86/cpu/intel.c +++ b/xen/arch/x86/cpu/intel.c @@ -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)) { -- 2.30.2