Re: [PATCH] io: mark mixed functions that can suspend

2023-04-18 Thread Daniel P . Berrangé
On Thu, Apr 06, 2023 at 12:28:00PM +0200, Paolo Bonzini wrote: > There should be no paths from a coroutine_fn to aio_poll, however in > practice coroutine_mixed_fn will call aio_poll in the !qemu_in_coroutine() > path. By marking mixed functions, we can track accurately the call paths > that

[PATCH] io: mark mixed functions that can suspend

2023-04-06 Thread Paolo Bonzini
There should be no paths from a coroutine_fn to aio_poll, however in practice coroutine_mixed_fn will call aio_poll in the !qemu_in_coroutine() path. By marking mixed functions, we can track accurately the call paths that execute entirely in coroutine context, and find more missing coroutine_fn