|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [RESEND][PATCH] xen/arm: sched: Ensure the vCPU context is seen before vcpu_pause() returns
On 23/09/2020 12:08, Bertrand Marquis wrote: Hi Julien, Memory barriers usually work in pair. We have a write barrier in vcpu_context_saved() but no read barrier in the code relying on the v->is_running. Shouldn’t we make sure instead that any time is_running is modified to false there is a barrier before (which is the case in vcpu_context_saved) ? I understand the goal here but the barrier seem very far from the modification of is_running. That's not what I am trying to fix (see above). Instead, this patch will ensure that when a pCPU observe v->is_running = false, then it can rely on the context of the vCPU to be valid. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |