|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests
Hi Stefano, On 31/05/2017 18:56, Stefano Stabellini wrote: On Wed, 31 May 2017, Julien Grall wrote:Hi Stefano, On 30/05/17 23:07, Stefano Stabellini wrote:On Tue, 30 May 2017, Julien Grall wrote: The problem lies in this code because we don't have per-IRQ locking. The ASSERT is not a solution to make sure a race does not happen (it could easily happen if the LPI is pending whilst the guest is discarding it). If you add an ASSERT you will potentially get your platform crashing time to time on discard. So I don't think the ASSERT is acceptable here. There is a potential race between its_discard_event and this function. The former may reset pending_irq whilst reading lpi_vcpu_id as we cannot take the vCPU lock yet. But all of this is racy anyway because of the locking. This will get solved by the vGIC rework after the merge. So For the time being I would keep the check. We can revisit it later if necessary.This is one of those things that are unimportant because they work either way. I am sorry, but it matters when you can easily prevent crash and limit the racy condition. 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 |