On 26.05.2022 15:10, Paolo Bonzini wrote:
On 5/26/22 11:51, Pavel Dovgalyuk wrote:At least aio_bh_schedule_oneshot_full should have the same effect, so should this be done at a lower level, in aio_bh_enqueue() or even aio_notify()?Not sure about aio_notify. It can operate with different contexts. Can some of them be not related to the VM state?All but the main AioContext one would have current_cpu == NULL.
aio_bh_enqueue is better. Moving this code to aio_notify breaks the tests.