|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH 11/49] ARM: VGIC: reorder prototypes in vgic.h
Hi Andre, On 09/02/18 14:38, Andre Przywara wrote: /* - * Allocate a guest VIRQ - * - spi == 0 => allocate a PPI. It will be the same on every vCPU - * - spi == 1 => allocate an SPI + * In the moment vgic_num_irqs() just covers SPIs and the private IRQs, + * as it's mostly used for allocating the pending_irq and irq_desc array, + * in which LPIs don't participate. */ -extern int vgic_allocate_virq(struct domain *d, bool spi); +#define vgic_num_irqs(d) ((d)->arch.vgic.nr_spis + 32)+/*+ * Allocate a guest VIRQ + * - is_spi == 0 => allocate a PPI. It will be the same on every vCPU + * - is_spi == 1 => allocate an SPI + */ +extern int vgic_allocate_virq(struct domain *d, bool is_spi); +/* Reserve a specific guest vIRQ */ +extern bool vgic_reserve_virq(struct domain *d, unsigned int virq); +extern void vgic_free_virq(struct domain *d, unsigned int virq); newline here please. Otherwise the split looks good: Reviewed-by: Julien Grall <julien.grall@xxxxxxx> Cheers,
-- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |