From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v4 10/33] xen/arm: Allow virq != irq Date: Tue, 31 Mar 2015 11:41:21 +0100 Message-ID: <1427798481.2115.52.camel@citrix.com> References: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> <1426793399-6283-11-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yctna-0004Nl-2g for xen-devel@lists.xenproject.org; Tue, 31 Mar 2015 10:53:34 +0000 In-Reply-To: <1426793399-6283-11-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, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2015-03-19 at 19:29 +0000, Julien Grall wrote: > Currently, Xen is assuming that the virtual IRQ will always be the same > as IRQ. > > Modify route_guest_irq to take the virtual IRQ in parameter which allow > Xen to assign a different IRQ number. Also store the vIRQ in the desc > action to easily retrieve the IRQ target when we need to inject the > interrupt. > > As DOM0 will get most the devices, the vIRQ is equal to the IRQ in that case. > > At the same time modify the behavior of irq_get_domain. The function now > requires that the irq_desc belongs to an IRQ assigned to a guest. > > Signed-off-by: Julien Grall > Acked-by: Stefano Stabellini Acked-by: Ian Campbell