From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] linux: prevent invalid or unsupportable PIRQs from being used Date: Wed, 05 Nov 2008 14:54:12 +0000 Message-ID: References: <4911B833.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4911B833.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5/11/08 14:13, "Jan Beulich" wrote: > 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. Reverted as it breaks the build non-trivially (at least: no set_irq_chip_and_handler_name(); no pirq_chip structure). The 2.6.18 isn't really the place for big code restructurings anyway (this was a big patch). -- Keir