Comment 67 for bug 1921664

Revision history for this message
In , stefanha (stefanha-redhat-bugs) wrote :

(In reply to serge_sans_paille from comment #30)
> The following diff
>
> ```
> --- qemu-6.1.0.orig/util/async.c 2021-08-24 13:35:41.000000000 -0400
> +++ qemu-6.1.0/util/async.c 2021-09-20 17:48:15.404681749 -0400
> @@ -673,6 +673,10 @@
>
> AioContext *qemu_get_current_aio_context(void)
> {
> + if (qemu_in_coroutine()) {

This uses the `current` TLS variable. Are you sure this works? It seems like the same problem :).