All of lore.kernel.org
 help / color / mirror / Atom feed
* NR_PIRQS vs. NR_IRQS
@ 2008-11-13 16:59 Jan Beulich
  2008-11-13 18:41 ` Keir Fraser
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Beulich @ 2008-11-13 16:59 UTC (permalink / raw)
  To: xen-devel

I'm having some difficulty understanding why these two need to be
distinguished: Depending on the code location, an IRQ passed in from the
guest may be checked against NR_PIRQS (map_domain_pirq() as called
from PHYSDEVOP_alloc_irq_vector) or NR_IRQS (PHYSDEVOP_irq_status_query,
PHYSDEVOP_map_pirq), despite it having the same source.

Also, tying NR_IRQS to NR_VECTORS seems bogus - even with current
code I can't see why we shouldn't be able to support a higher NR_IRQS
without immediately doing the more involved code changes needed to
also grow NR_VECTORS. After all, NR_IRQS is directly tied to the number
of IO-APIC pins we can support - in order to support a device, its
cumulative pin number (being the irq) must be below NR_IRQS. But since
very likely not all pins are connected to devices, NR_VECTORS is much
less of a limiting factor.

Thanks, Jan

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-11-19 16:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 16:59 NR_PIRQS vs. NR_IRQS Jan Beulich
2008-11-13 18:41 ` Keir Fraser
2008-11-13 19:19   ` Keir Fraser
2008-11-14  7:48     ` Jan Beulich
2008-11-14  7:54       ` Keir Fraser
2008-11-14  8:00         ` Keir Fraser
2008-11-14  8:19           ` Jan Beulich
2008-11-14  8:31             ` Keir Fraser
2008-11-14 19:27           ` Jeremy Fitzhardinge
2008-11-19 15:55           ` Jan Beulich
2008-11-19 16:09             ` Keir Fraser
2008-11-19 16:23               ` Jan Beulich
2008-11-19 16:33                 ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.