From: Keir Fraser Subject: Re: [PATCH 2 of 4] xen: introduce PHYSDEVOP_get_nr_pirqs Date: Tue, 31 Aug 2010 13:55:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 31/08/2010 13:49, "Stefano Stabellini" wrote: >> Couldn't it, like, pick the smallest available? :-) >> > > Well, it might still be useful to know the upper limit, besides linux > tends to choose the pirq == irq and the irqs for MSIs are high. > Xen does the same thing by the way. Well I'm just being fussy because it's yet another irq related interface and we seem to have so many already. Might-be-useful is different from must-have-now, and if you are allocating pirq==irq then that allocation strategy is not influenced by knowing nr_pirqs is it? -- Keir