|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v8 3/3] xen/events: do some cleanups in evtchn_fifo_set_pending()
On 25/11/2020 10:51, Juergen Gross wrote: evtchn_fifo_set_pending() can be simplified a little bit. The commit message is quite light... For posterity, it would be good to explain why the simplication can be done. In particular, there is a chance in behavior after this patch.
Sort of unrelated, AFAICT, v->evtchn_fifo->control_block can be set concurrently to this access. Thankfully, once the control block is mapped, it can't be unmapped. However, there is still a possibility that you may see half of the update. Shouldn't the field access with ACCESS_ONCE()? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |