From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH 4/7] paravirtualization: Allow selected bug checks to be skipped by paravirt kernels Date: Wed, 01 Nov 2006 15:58:15 -0800 Message-ID: <45493497.1040707@goop.org> References: <20061029024504.760769000@sous-sol.org> <20061029024607.401333000@sous-sol.org> <200610290831.21062.ak@suse.de> <1162178936.9802.34.camel@localhost.localdomain> <20061030231132.GA98768@muc.de> <1162376827.23462.5.camel@localhost.localdomain> <1162376894.23462.7.camel@localhost.localdomain> <1162376981.23462.10.camel@localhost.localdomain> <1162377043.23462.12.camel@localhost.localdomain> <20061101152946.14f95f79.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20061101152946.14f95f79.akpm@osdl.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.osdl.org Errors-To: virtualization-bounces@lists.osdl.org To: Andrew Morton Cc: Chris Wright , Andi Kleen , linux-kernel@vger.kernel.org, virtualization@lists.osdl.org List-Id: virtualization@lists.linuxfoundation.org Andrew Morton wrote: > On Wed, 01 Nov 2006 21:30:43 +1100 > Rusty Russell wrote: > > = >> --- a/include/asm-i386/bugs.h >> +++ b/include/asm-i386/bugs.h >> @@ -21,6 +21,7 @@ >> #include >> #include >> #include >> +#include >> = > > In many other places you have > > #ifdef CONFIG_PARAVIRT > #include > ... > > But not here. > > Making invulnerable would be the more typical approach. CONFIG_PARAVIRT is not being used to guard asm/paravirt.h from multiple = inclusion. In places where it is being used to guard #include = , the idea is that asm/paravirt.h defines various = inlines/macros which would otherwise be defined in the header. So, for = example, asm/desc.h would normally define load_gdt() in the = !CONFIG_PARAVIRT case, but asm/paravirt.h defines it when = CONFIG_PARAVIRT is enabled. = In this case, asm/paravirt.h included because we need the definition for = paravirt_enabled(), not because it is replacing any of bugs.h's definitions. J