|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 13/30] ARM: GICv3: forward pending LPIs to guests
Hi Stefano, On 04/06/2017 07:47 PM, Stefano Stabellini wrote: On Thu, 6 Apr 2017, Andre Przywara wrote: The property table could be really big (up to the number of LPIs supported by the guest). The memory is contiguous from a domain point of view but not necessarily on the host. So you would have to store a big number of MFN. IIRC the property table can be up to 4GB, so we would need an array of 8MB. Also reading from the guest would require some safety which is not necessary here. Furthermore, we have space in pending_irq because of padding. So why bothering doing that? Everything on itself is not really too demanding (on arm64), but doing this in the interrupt handling path to learn the priority value sounds a bit over the top. For the *ITS* emulation (command handling) we can cope with this overhead (because this is only needing during the virtual command handling), but I wanted to avoid this in the generic GIC code, which is also a hot path, as I understand. Since the GICv3 architecture explicitly allows caching this information, I wanted to use this opportunity. Does that make sense?Yes, I see your reasoning and you are right that it is very important to keep the hot path very fast. However, I think we should be able to do that without duplicating information and adding another field to pending_irq. Why? We should not trust information living in the guest memory. This is a call to attack Xen. So this means more safety. 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 |