]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
linux: prevent invalid or unsupportable PIRQs from being used
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 14:45:34 +0000 (14:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 14:45:34 +0000 (14:45 +0000)
commit520c7a309c64fd82a5e36821be2a89d040fef21c
tree7a3a457aa544907f8e861eac659d85a84b41c213
parent0d3b179890ba30a24e9410b777c5a0c921741cd4
linux: prevent invalid or unsupportable PIRQs from being used

By keeping the respective irq_desc[] entries pointing to no_irq_type,
setup_irq() (and thus request_irq()) will fail for such IRQs. This
matches native behavior, which also only installs ioapic_*_type out of
ioapic_register_intr().

At the same time, make assign_irq_vector() fail not only when Xen
doesn't support the PIRQ, but also if the IRQ requested doesn't fall
in the kernel's PIRQ space.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
arch/i386/kernel/io_apic-xen.c
arch/x86_64/kernel/io_apic-xen.c
drivers/xen/core/evtchn.c