WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

RE: [Xen-ia64-devel] RE: pv_ops polish: config option & head file

To: "Alex Williamson" <alex.williamson@xxxxxx>
Subject: RE: [Xen-ia64-devel] RE: pv_ops polish: config option & head file
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Wed, 19 Mar 2008 00:00:10 +0800
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 18 Mar 2008 09:04:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205851555.27908.57.camel@bling>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7ktzjbqjfs.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20080313124404.GA2687@saphi> <10EA09EFD8728347A513008B6B0DA77A02E77732@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080314084609.GL22951%yamahata@xxxxxxxxxxxxx> <10EA09EFD8728347A513008B6B0DA77A02E777F6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1205514823.8100.30.camel@lappy> <10EA09EFD8728347A513008B6B0DA77A02EBB71D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1205766861.7008.11.camel@lappy> <10EA09EFD8728347A513008B6B0DA77A02EBBC91@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1205812492.27908.31.camel@bling> <10EA09EFD8728347A513008B6B0DA77A02EBBF8E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1205847706.27908.39.camel@bling> <10EA09EFD8728347A513008B6B0DA77A02EBBFBC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1205851555.27908.57.camel@bling>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciJB9AhHT8NP5/PS2+zqQsptDtNGAAB2Uog
Thread-topic: [Xen-ia64-devel] RE: pv_ops polish: config option & head file
Alex Williamson wrote:
> On Tue, 2008-03-18 at 22:18 +0800, Dong, Eddie wrote:
>>>> How about just simply use CONFIG_PARAVIRT ?
>>> 
>>>    Then how do you specify that you want a kernel built with Xen
>>> support, but not KVM? 
>>> 
>> 
>> Mmm, this is kind of what level of detail do we want user to choose.
>> Given that RHEL want one image, so this sub-option is just for
>> in house development even if multiple IA64 VMM really comes.
>> We can argu for the usage model.
>> 
>> 
>> Leaving some code for this is OK, but
>> but at least for those who have running_on_xen condition already,
>> we don;t need CONFIG_XEN, (rather CONFIG_PARAVIRT).
>> Also for those Xen specific files, i.e. those xen wrapper code,
>> we can treat whole directory as one, either compile it or skip it.
>> Does this make sense?
> 
>    Hmm, I still disagree.  The way the Kconfigs are structured now, we
> have:
> 
> PARAVIRT_GUEST
>       -> PARAVIRT
>               -> XEN
> 
> PARAVIRT_GUEST adds no code, but enables the other config options. 
> XEN is dependent on PARAVIRT.  IMHO, PARAVIRT should enable the pv_ops
> functionality, but not add the Xen specific code.  You can imagine a

Yes if full pv_ops is enabled, those kind issue will all go away like
X86 side.
Actually I compromised to your suggestion to leave some running_on_xen
in code, though I still think majority of them should be pv_opsed.

With full pv_ops, running_on_xen can disappear too.

In this case, full pv_ops will solve CONFIG_XEN too, but since we may 
not have that much resource to complete it in short term, so I agree
we may leave some "CONFIG_XEN" & running_on_xen.

For those directories dedicated for XEN, I don't think we need
in code CONFIG_XEN any more.

For those running_on_xen + CONFIG_XEN case, it is a coding style issue.
Long time goal is to use full pv_ops, mca_xencomm_list is one of the
candidate IMO.

But for now leaveing runing_on_xen, or CONFIG_XEN is OK to me.
Whether it needs double condition is up to your guys.

> PV KVM option or LGUEST option that wants PARAVIRT, but not XEN (or
> all of them together in one binary).  I think which VMMs you want to
> support is a reasonable level of detail for someone configuring a
> kernel to select. The granularity also shows upstream that we've

It is always a tradeoff. If LGUEST or KVM hypervisor will come soon,
I bet full pv_ops will come soon too...

> thought about generic PV support and we're not just trying to dump a
> bunch of Xen-only code into the tree.

In this case, those mca_xencomm_list is hard to say Xen only code, it
could be abstracted as generic PV mechanism I think. But we just leave
it
to future.

> 
>    We don't need to be constantly concerned with RH's config, we need
> to look at the bigger picture for what's right in Linux.  We can make
> sure RH's config has everything we want for a single binary later as
> long as we enable that possibility in what we're doing.  Thanks,
> 
>       Alex

Thanks, eddie

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel