[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080321185434.GB23139@localdomain>
Date: Fri, 21 Mar 2008 11:54:34 -0700
From: Ravikiran G Thirumalai <kiran@...lex86.org>
To: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
Glauber de Oliveira Costa <gcosta@...hat.com>,
Andi Kleen <ak@...e.de>, shai@...lex86.org
Subject: Re: [patch 2/4] x86: Fix build breakage when PCI is define and PARAVIRT is not
On Thu, Mar 20, 2008 at 09:30:09PM -0700, Jeremy Fitzhardinge wrote:
>Ravikiran G Thirumalai wrote:
>>- Fix the the build breakage when PARAVIRT is defined
>> but PCI is not
>> This fixes problem reported at:
>> http://marc.info/?l=linux-kernel&m=120525966600698&w=2
>>- Make is_vsmp_box() available even when PARAVIRT is not defined.
>> This is needed to determine if tsc's are reliable as a time source
>> even when PARAVIRT is not defined.
>>- split vsmp_init to use is_vsmp_box() and set_vsmp_pv_ops()
>> set_vsmp_pv_ops will do nothing if PCI is not enabled in the config.
>>
>
>I'm a bit confused by all the config dependencies. I had assumed that
>VSMP depended on both PCI and PARAVIRT. Is this not actually true? You
>can have a VSMP system without either or both of PCI/PARAVIRT?
Well, you could have a vSMPowered system without PARAVIRT, yes. But a non
PCI vSMPowered system does not exist to my knowledge.
>
>The structure of the code suggests that at the very least VSMP depends
>on PCI (it never makes sense to enable VSMP on a non-PCI system), and
>therefore a number of your config decisions can just be predicated on VSMP.
Well, vSMPowered bits in the kernel serves two objectives:
a) Internode cacheline size
b) paravirt irq ops
A vSMPowered machine can boot without either, but both affect performance.
Both these bits are not interdependent. The paravirt ops
need the PARAVIRT infrastructure and that is all that is needed.
The internode cacheline size needs a compile time definition that's all.
CONFIG_X86_VSMP chooses both. However, there is no reason to have paravirt
irq ops depend on the Internode cacheline size. More so since pv ops
has the capability to detect the system type dynamically and using
appropriate pv ops.
Thanks,
Kiran
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists