From: Ian Campbell Subject: Re: [PATCH v3 12/18] xen/arm: IRQ: Do not allow IRQ to be shared between domains and XEN Date: Wed, 16 Apr 2014 16:40:45 +0100 Message-ID: <1397662845.24638.216.camel@kazak.uk.xensource.com> References: <1396968247-8768-1-git-send-email-julien.grall@linaro.org> <1396968247-8768-13-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 1WaRxD-0002N4-HU for xen-devel@lists.xenproject.org; Wed, 16 Apr 2014 15:40:51 +0000 In-Reply-To: <1396968247-8768-13-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 Tue, 2014-04-08 at 15:44 +0100, Julien Grall wrote: > The current dt_route_irq_to_guest implementation sets IRQ_GUEST even if the > IRQ is correctly setup. > > An IRQ can be shared between devices, if the devices are not assigned to the > same domain or Xen, then this could result in routing the IRQ to the domain > instead of Xen ... > > Also avoid to relying on wrong the behaviour when Xen is routing an IRQ to > DOM0. Therefore check the return code from route_dt_irq_to_guest in > map_device. > > Signed-off-by: Julien Grall Acked-by: Ian Campbell