|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 08/21] xen/arm: Initialize the virtual GIC later
On 29/08/14 15:49, Andrii Tseglytskyi wrote: On Fri, Aug 29, 2014 at 9:57 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote: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.Yes, locally I did the same as you mentioned, but I'm thinking about solution which will allow me to have 1 to 1 irq mapping and which will be acceptable for Xen mainline. IHMO, the best solution would adding a boolean in the new DOMCTL to specify if we want to use PIRQ == VIRQ or not. Then you will have to modify vgic_allocate_irq to return the physical IRQ if the domain as this new option enabled. With this change you may have some issue when unmap_pirq is used. I would modify vgic_allocate_irq to always return the physical IRQ number. The code will be also more clean. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |