From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 08/21] xen/arm: Initialize the virtual GIC later Date: Fri, 29 Aug 2014 14:57:27 -0400 Message-ID: <5400CD17.5060909@linaro.org> References: <1406818852-31856-1-git-send-email-julien.grall@linaro.org> <1406818852-31856-9-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" 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 1XNRMd-0006do-Io for xen-devel@lists.xenproject.org; Fri, 29 Aug 2014 18:57:35 +0000 Received: by mail-qg0-f41.google.com with SMTP id i50so2716457qgf.14 for ; Fri, 29 Aug 2014 11:57:33 -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: Ian Campbell , Tim Deegan , Ian Jackson , Stefano Stabellini , Jan Beulich , xen-devel , Daniel De Graaf List-Id: xen-devel@lists.xenproject.org On 29/08/14 09:09, Andrii Tseglytskyi wrote: > Hi Julien, Hi Andrii, > Here I got 32 lines for 3 SPIs > > And this will break checking for IRQ validity in > xen/arch/arm/irq.c:route_irq_to_guest() call. I will not be able to > use IRQ with number greater than 63. > > Can this be handled somehow? Or maybe it is already handled and I > missed something ? You will have to modify the function for your purpose. If you plan to PIRQ == VIRQ every time, you could do smth like: d->arch.vgic.nr_spis = gic_number_lines() - 32; I assume, you already modified vgic_allocate_irq to return directly the pirq, and do nothing in vgic_free_irq. Regards, -- Julien Grall