From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Query: Boot time allocation of irq descriptors Date: Wed, 11 Feb 2015 14:55:51 +0000 Message-ID: <54DB6D77.1030004@citrix.com> 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.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vijay Kilari , Ian Campbell , Stefano Stabellini Cc: manish.jaggi@caviumnetworks.com, Julien Grall , Stefano Stabellini , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 11/02/15 14:50, Vijay Kilari wrote: > Hi , > > I just glaced at the x86 code, here nr_irqs are set to 1024, which includes > normal irq's and MSI's. Memory for these descriptors are allocated at boot time. > is it correct? > > int __init init_irq_data(void) > { > > ... > for (vector = 0; vector < NR_VECTORS; ++vector) > this_cpu(vector_irq)[vector] = INT_MIN; > > irq_desc = xzalloc_array(struct irq_desc, nr_irqs); > > ... > } > > > In xen/include/asm-x86/irq.h > > #define MSI_IRQ(irq) ((irq) >= nr_irqs_gsi && (irq) < nr_irqs) What do you think is incorrect about it? ~Andrew