|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 07/27] ARM: GICv3 ITS: introduce host LPI array
Hi Andre, On 04/03/2017 09:28 PM, Andre Przywara wrote: [...] +/* + * There could be a lot of LPIs on the host side, and they always go to + * a guest. So having a struct irq_desc for each of them would be wasteful + * and useless. + * Instead just store enough information to find the right VCPU to inject + * those LPIs into, which just requires the virtual LPI number. + * To avoid a global lock on this data structure, this is using a lockless + * approach relying on the architectural atomicty of native data types: s/atomicty/atomicity/ [...] [...] NIT: As suggested on v2, this could be xenheap_alloc_page(0); As host_lpis could be read without lock, I would add a barrier here to make sure new_chunk[*].dom_id have been written before setting up the page. A similar barrier would be needed in the do_lpi(...) path. [...] Again, I think INVALID_LPI should be moved in irq.h to stay with the definition of LPI_OFFSET. It was supposed to be fixed in v3... 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 |