Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbWKAWlj (ORCPT ); Wed, 1 Nov 2006 17:41:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752531AbWKAWlj (ORCPT ); Wed, 1 Nov 2006 17:41:39 -0500 Received: from mx1.redhat.com ([66.187.233.31]:57002 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1752529AbWKAWli (ORCPT ); Wed, 1 Nov 2006 17:41:38 -0500 Date: Wed, 1 Nov 2006 17:40:19 -0500 From: Dave Jones To: Pavel Machek Cc: Chris Wright , akpm@osdl.org, ak@muc.de, Rusty Russell , Jeremy Fitzhardinge , Zachary Amsden , linux-kernel@vger.kernel.org, virtualization@lists.osdl.org Subject: Re: [PATCH 4/7] Allow selected bug checks to be skipped by paravirt kernels Message-ID: <20061101224019.GA10577@redhat.com> Mail-Followup-To: Dave Jones , Pavel Machek , Chris Wright , akpm@osdl.org, ak@muc.de, Rusty Russell , Jeremy Fitzhardinge , Zachary Amsden , linux-kernel@vger.kernel.org, virtualization@lists.osdl.org References: <20061029024504.760769000@sous-sol.org> <20061029024606.496399000@sous-sol.org> <20061101121753.GA2205@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061101121753.GA2205@elf.ucw.cz> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 25 On Wed, Nov 01, 2006 at 01:17:53PM +0100, Pavel Machek wrote: > > +++ linux-2.6-pv/arch/i386/kernel/cpu/intel.c > > @@ -107,7 +107,7 @@ static void __cpuinit init_intel(struct > > * Note that the workaround only should be initialized once... > > */ > > c->f00f_bug = 0; > > - if ( c->x86 == 5 ) { > > + if (!paravirt_enabled() && c->x86 == 5) { > > I'd do x86==5 check first... pentiums are not common any more. It's not like paravirt_enabled will be common-case either, and is this isn't exactly a performance critical piece of code, it doesn't really matter which way around the checks are done. Dave -- http://www.codemonkey.org.uk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/