From: "Eric Trudeau" Subject: Re: [XenARM] XEN tools for ARM with Virtualization Extensions Date: Wed, 10 Jul 2013 19:38:39 +0000 Message-ID: References: <1372237802.18901.115.camel@zakaz.uk.xensource.com> <1372265106.7337.107.camel@zakaz.uk.xensource.com> <1372350862.8976.35.camel@zakaz.uk.xensource.com> <51CC9398.4060301@linaro.org> <1373460637.5453.108.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373460637.5453.108.camel@hastur.hellion.org.uk> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Julien Grall , "Stefano.Stabellini@citrix.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org > > What functions should I call to implement XEN_DOMCTL_bind_pt_irq on > ARM? > > There's a function like route_irq_to_guest which we use to route IRQs to > dom0 during boot. In principal that could also be used to reroute an IRQ > to a guest, but I'm not sure how it will interact with the reassignment, > since in your case the IRQ starts off bound to dom0. Hopefully it's just > a small change to make it work for this case. > In gic_route_irq_to_guest(), there is this call: gic_set_irq_properties(irq->irq, level, 1u << smp_processor_id(), 0xa0); I believe this will mean all IRQs will be routed on the current processor. I believe this is PCPU0 when the dom0 device tree is being parsed. When the PHYSDEVOP_map_pirq call is handled by the Hypervisor, the PCPU may be any of the processors. Is there a reason when we only route the IRQs for Dom0 to one PCPU? If only one is allowed, should it be PCPU0? Thanks, Eric