From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v4 18/33] xen/arm: Release IRQ routed to a domain when it's destroying Date: Tue, 31 Mar 2015 11:58:42 +0100 Message-ID: <1427799522.2115.64.camel@citrix.com> References: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> <1426793399-6283-19-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yctsd-0005kw-V7 for xen-devel@lists.xenproject.org; Tue, 31 Mar 2015 10:58:48 +0000 In-Reply-To: <1426793399-6283-19-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2015-03-19 at 19:29 +0000, Julien Grall wrote: > Xen has to release IRQ routed to a domain in order to reuse later. > Currently only SPIs can be routed to the guest so we only need to > browse SPIs for a specific domain. > > Furthermore, a guest can crash and let the IRQ in an incorrect state "leave the irq" > (i.e has not being EOIed). Xen will have to reset the IRQ in order to s/being/been/ > be able to reuse the IRQ later. > > Introduce 2 new functions for release an IRQ routed to a domain: > - release_guest_irq: upper level to retrieve the IRQ, call the GIC > code and release the action > - gic_remove_guest_irq: Check if we can remove the IRQ, and reset > it if necessary > > Signed-off-by: Julien Grall Acked-by: Ian Campbell