On Wed, Sep 15, 2021 at 02:14:08PM +0200, Paolo Bonzini wrote: > On 13/09/21 15:27, Stefan Hajnoczi wrote: > > > +/* > > > + * I/O API functions. These functions are thread-safe, and therefore > > > + * can run in any AioContext. > > "can run in any AioContext" makes me wonder what the exact requirements > > are. Can they run in any*thread* (regardless of whether an AioContext > > even exists for that thread) or do they need to run in a thread that has > > called qemu_set_current_aio_context()? > > I think they can run in any thread as long as they have called > aio_context_acquire/release; later on, they will be able to run in any > thread completely (which will be the underlying mechanism for multiqueue).
Great, it would be good to reflect this in the comment. Stefan
signature.asc
Description: PGP signature