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-merge

RE: [Xen-merge] CONFIG_XEN vs. CONFIG_X86{,_64}_XEN

To: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Subject: RE: [Xen-merge] CONFIG_XEN vs. CONFIG_X86{,_64}_XEN
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Wed, 21 Dec 2005 09:35:29 -0800
Cc: James Bulpin <james@xxxxxxxxxxxxx>, xen-merge@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 21 Dec 2005 17:38:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-merge-request@lists.xensource.com?subject=help>
List-id: xen-merge <xen-merge.lists.xensource.com>
List-post: <mailto:xen-merge@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-merge-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYGUpagcb2hGAUJTwOfnHXntTLB3AAAf6AQ
Thread-topic: [Xen-merge] CONFIG_XEN vs. CONFIG_X86{,_64}_XEN
> It'd be interesting, if it doesn't take you too much time. I'd have
> wanted to rather make this a conditional like

Looks like my memory was faulty... I was just
recalling the attached message.  The double
conditional is probably a better choice for
common files.

Dan

P.S. James -- It looks like the xen-merge archives
have had the same problem as xen-ia64-devel archives.
(I had to dig up this message from my personal
email archives.)

> -----Original Message-----
> From: Magenheimer, Dan (HP Labs Fort Collins) 
> Sent: Friday, August 12, 2005 10:57 AM
> To: 'Vincent Hanquez'
> Cc: xen-merge@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-merge] CONFIG_XEN (and more?)
> 
> > CONFIG_XEN is suppose to be ARCH-agnostic
> > CONFIG_X86_XEN is for i386-xen
> 
> Perfect!  Thanks!
> 
> Perhaps the CONFIG_X86_XEN designation should start appearing
> in the -sparse trees?.  I'm hoping to start merging Xen/ia64
> changes into the -sparse trees at some point and it
> doesn't require any patches outside of arch/ia64, asm-ia64,
> and of course the xen common directories (drivers/xen, etc).
> 
> If the Xen/x86-required changes to linux common files
> (include/linux/highmem.h for example) are ifdef'd,
> then other architectures can use the same mkbuildtree.
> 
> Dan
> 

> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@xxxxxxxxxx] 
> Sent: Wednesday, December 21, 2005 10:20 AM
> To: Magenheimer, Dan (HP Labs Fort Collins)
> Cc: xen-merge@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-merge] CONFIG_XEN vs. CONFIG_X86{,_64}_XEN
> 
> >CONFIG_XEN should be used whenever the change applies
> >to Xen for all architectures.  CONFIG_X86_XEN should be used
> >in generic code when a change applies only to x86.
> >(There was a recent example of this... I can dig it up
> >if you wish.)
> 
> It'd be interesting, if it doesn't take you too much time. I'd have
> wanted to rather make this a conditional like
> 
> #if defined(CONFIG_XEN) && defined(CONFIG_X86)
> 
> as I expect this to be rare.
> 
> >If the code is clearly x86-specific
> >(e.g. in arch/i386 or include/asm-x86), I agree the
> >_X86_ part is superfluous.
> 
> Sure. But I'd like this to be consistent, which is why, for 
> now, I used
> CONFIG_X86_XEN everywhere.
> 
> Jan
> 

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