32 messages in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] Re: [PATCH 11/15] ia...
FromSent OnAttachments
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Isaku Yamahata08 Apr 2008 21:48 
Jes Sorensen22 Apr 2008 02:07 
Jes Sorensen22 Apr 2008 02:16 
Isaku Yamahata22 Apr 2008 03:01 
Isaku Yamahata22 Apr 2008 03:10 
Jes Sorensen22 Apr 2008 03:36 
Dong, Eddie22 Apr 2008 03:41 
Isaku Yamahata22 Apr 2008 04:01 
Jes Sorensen22 Apr 2008 04:29 
Jes Sorensen22 Apr 2008 05:05 
Dong, Eddie22 Apr 2008 06:15 
Jes Sorensen22 Apr 2008 06:55 
Isaku Yamahata22 Apr 2008 19:53 
Jes Sorensen23 Apr 2008 07:03 
Isaku Yamahata24 Apr 2008 04:18 
Jes Sorensen24 Apr 2008 04:51 
Isaku Yamahata24 Apr 2008 05:21 
Subject:[Xen-ia64-devel] Re: [PATCH 11/15] ia64/pv_ops: paravirtualize NR_IRQS
From:Jes Sorensen (je@sgi.com)
Date:04/24/2008 04:51:57 AM
List:com.xensource.lists.xen-ia64-devel

Isaku Yamahata wrote:

On Wed, Apr 23, 2008 at 04:03:58PM +0200, Jes Sorensen wrote:

Isaku Yamahata wrote:

I'd rather have PARAVIRT_NR_IRQ set from Kconfig if possible given that all of these are constants anyway. If we cannot do that, then it would be better to do the #if FOO_NR_IRQ > PARAVIRT_NR_IRQ in the various header files for Xen/KVM/lguest so we don't get the clutter in the main makefile.

Unfotunately Kconfig doesn't support arithmetic comparison. So do you want something like the followings?

IMHO, that would be better.

How about this? Eventually I found another way which doesn't use #undef trick. ASM_OFFSET_C is somewhat tricky, but much better, I suppose.

Hi Isaku,

Yes, this looks like a much nicer way to solve the problem IMHO.

+/* + * PARAVIRT_NR_IRQS is defined by asm-offsets.c as + * max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, ...) depending on config. + */ +#ifndef ASM_OFFSETS_C +#include <asm/asm-offsets.h> +#define NR_IRQS PARAVIRT_NR_IRQS #endif

static __inline__ int

Shouldn't this be defined as IA64_NATIVE_NR_IRQS? I wouldn't do the #ifndef ASM_OFFSETS_C part, you should be able to just include it unconditionally.

Cheers, Jes