Skip to contentSkip to conversation

Fix NR_PIRQS to be the same in Xen and Linux

PATCH In review Natasha Jarymowycz 2 participants 2 messages Jul 12, 2005 – Jul 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix NR_PIRQS to be the same in Xen and Linux

In linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h, NR_PIRQS is 256. But in Xen NR_PIRQS is defined to be only 128. This patch ups the number in Xen to 256.

xen/include/xen/sched.h 2005-07-12 10:33:28.000000000 -0500 renamed from xen/include/xen/sched.h 2005-07-05 11:05:47.000000000 -0500 +1 -1
diff -Nrup mercurial/xen/include/xen/sched.h mercurial.patched/xen/include/xen/sched.h
@@ -122,7 +122,7 @@ struct domain
      * domain's event-channel spinlock. Read accesses can also synchronise on
      * the lock, but races don't usually matter.
      */
-#define NR_PIRQS 128 /* Put this somewhere sane! */
+#define NR_PIRQS 256 /* Put this somewhere sane! */
     u16              pirq_to_evtchn[NR_PIRQS];
     u32              pirq_mask[NR_PIRQS/32];
#1 lore raw
Quoted 3 lines · Natasha Jarymowycz

In linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h, NR_PIRQS is 256. But in Xen NR_PIRQS is defined to be only 128. This patch ups the number in Xen to 256.

[...]

xen/include/xen/sched.h 2005-07-12 10:33:28.000000000 -0500 struct domain · line 125

Quoted 2 lines
xen/include/xen/sched.h 2005-07-12 10:33:28.000000000 -0500 renamed from xen/include/xen/sched.h 2005-07-05 11:05:47.000000000 -0500 +1 -1
-#define NR_PIRQS 128 /* Put this somewhere sane! */
+#define NR_PIRQS 256 /* Put this somewhere sane! */

Like the comment says, shouldn't it be put somewhere so that both XenLinux and Xen will pick up the definition?

Signature · 1 line
David Hopwood <[email protected]>