From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC 06/19] xen/arm: Implement hypercall PHYSDEVOP_map_pirq Date: Tue, 19 Aug 2014 09:24:51 -0500 Message-ID: <53F35E33.5010906@linaro.org> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> <1402935486-29136-7-git-send-email-julien.grall@linaro.org> <53A2CBE1.1020403@linaro.org> <1404386851.17859.11.camel@kazak.uk.xensource.com> <53B54659.9090809@linaro.org> <1404391984.19893.5.camel@kazak.uk.xensource.com> <53C5260C.4010803@linaro.org> <1405429423.9794.32.camel@kazak.uk.xensource.com> <53F27646.5090609@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XJlvA-0003JC-Ln for xen-devel@lists.xenproject.org; Tue, 19 Aug 2014 16:06:07 +0000 Received: by mail-ie0-f172.google.com with SMTP id lx4so1365689iec.3 for ; Tue, 19 Aug 2014 09:06:02 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrii Tseglytskyi Cc: xen-devel , Tim Deegan , Ian Campbell , Stefano Stabellini , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hello Andrii, On 19/08/14 04:11, Andrii Tseglytskyi wrote: >> OOI, why do you need Virtual IRQ == Physical IRQ? >> > > Because I have few devices in DomU, which use hardcoded IRQ numbers. > > BTW - which code allocates IRQ number dynamically? My code is almost > the same and I have 1 to 1 in domU ? With this series, the toolstack is deciding the number of SPIs (see xen_domctl_configure_domain domctl). Then when map_pirq is called, the function vgic_allocate_irq allocates the SPIs number. Regards, -- Julien Grall