From: Keir Fraser Subject: Re: another regression from IRQ handling changes Date: Tue, 22 Sep 2009 11:30:27 +0100 Message-ID: References: <4AB8BAC60200007800016374@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4AB8BAC60200007800016374@vpn.id2.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 Cc: "xen-devel@lists.xensource.com" , "xiantao.zhang@intel.com" List-Id: xen-devel@lists.xenproject.org On 22/09/2009 10:53, "Jan Beulich" wrote: > I wouldn't base this on the passed in IRQ number, but instead on the > number of IRQs mapped - if the proposed array doesn't have a spare > slot anymore, switch to passing back the magic vector (and assume > pirq == irq in ioapic_guest_write() - we could even add checking of > that for all previously enabled IRQs this relation is true, and fail > PHYSDEVOP_alloc_irq_vector if the array got exhausted and Dom0 > didn't use only GSIs before). But besides that detail your idea sounds > fine at least from a Linux perspective. > > Are you planning on getting this done, or should I? Feel free to go ahead. Unfortunately I guess neither of us can properly test this case? :-( -- Keir