Am 08/11/2022 um 22:19 schrieb Stefan Hajnoczi:
> From: Emanuele Giuseppe Esposito <[email protected]>
>
> All the callbacks below are always running in the main loop.
>
> The callbacks are the following:
> - start/stop_ioeventfd: these are the callbacks where
> blk_set_aio_context(iothread) is done, so they are called in the main
> loop.
>
> - save and load: called during migration, when VM is stopped from the
> main loop.
>
> - reset: before calling this callback, stop_ioeventfd is invoked, so
> it can only run in the main loop.
>
> - set_status: going through all the callers we can see it is called
> from a MemoryRegionOps callback, which always run in a vcpu thread and
> hold the BQL.
>
> - realize: iothread is not even created yet.
>
> Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
> Reviewed-by: Stefan Hajnoczi <[email protected]>
> Acked-by: Michael S. Tsirkin <[email protected]>
> Signed-off-by: Stefan Hajnoczi <[email protected]>
> Message-Id: <[email protected]>
>
Reviewed-by: Emanuele Giuseppe Esposito <[email protected]>