From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 3/8] xen: arm: Refactor route_irq_to_guest Date: Wed, 11 Nov 2015 11:46:25 +0000 Message-ID: <56432A91.90407@citrix.com> References: <1447172433.9407.39.camel@citrix.com> <1447172473-21405-3-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1447172473-21405-3-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Ian, On 10/11/15 16:21, Ian Campbell wrote: > Split out the bit which allocates the struct irqaction and calls > __setup_irq into a new function (setup_guest_irq). I'm going to want > to call this a second time in a subsequent patch. > > Note that the action is now allocated and initialised with the desc > lock held (since it is taken by the caller). I don't think this is an > issue (and avoiding this would make things more complex) There is one potential issue, the desc->lock has to be taken with interrupt disabled. With this change, the interrupts are disabled far more longer than previously. I'm mostly worry about the xmalloc and the printk within this section. Regards, -- Julien Grall