|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH 05/10] ARM: vGIC: move priority from irq_rank to struct pending_irq
On 04/05/17 17:39, Julien Grall wrote: Hi Andre, On 04/05/17 16:31, Andre Przywara wrote:Currently we store the priority for newly triggered IRQs in the rank structure. To get eventually rid of this structure, move this value into the struct pending_irq. This one already contains a priority value, but we have to keep the two apart, as the priority for guest visible IRQs must not change while they are in a VCPU. This patch introduces a framework to get some per-IRQ information for a number of interrupts and collate them into one register. Similarilys/Similarily/Similarly/there is the opposite function to spread values from one register into multiple pending_irq's. Actually there are an issue with this code. You don't handle correctly byte access and vgic_reg32_extract expects the interrupt IHMO, this kind of problem could be handled directly in gather_irq_info_priority by passing the offset. See how we deal in vgic_fetch_itarger. The behavior of those functions should really be explained the commit message. Also I don't see any check to prevent reading interrupts outside of the one supported by the vGIC for this domain. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |