|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v9 15/28] ARM: vITS: provide access to struct pending_irq
On 26/05/17 10:10, Andre Przywara wrote: Hi, On 22/05/17 18:19, Julien Grall wrote:On 22/05/17 17:50, Andre Przywara wrote:Hi,Hi Andre,On 17/05/17 16:35, Julien Grall wrote:+ } + spin_unlock(&d->arch.vgic.its_devices_lock); + + return pirq; +} + +struct pending_irq *gicv3_its_get_event_pending_irq(struct domain *d, + paddr_t vdoorbell_address, + uint32_t vdevid, + uint32_t veventid)s/veventid/eventid/ So you never envision someone requiring the host LPI even for debug purpose?AFAICT, there are no other way to get the host LPI if necessary. It really does not hurt to expose it and provide a wrapper. And I would prefer code design considerations over the cost of one unconditional branch here. As you may know I am all in favor of more helpers over the cost of one unconditional branch (see the callback example) when it results to a better code design. But here it is not about code design, it is more about what kind of information would you need outside (see above). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |