On 11/3/22 14:42, Emanuele Giuseppe Esposito wrote:
There are probably more missing, but right now it is necessary that
we extend coroutine_fn to block{allock/status}_to_extents, because
they use bdrv_* functions calling the generated_co_wrapper API, which
checks for the qemu_in_coroutine() case.
Signed-off-by: Emanuele Giuseppe Esposito<eespo...@redhat.com>
generated_co_wrappers should only be called from functions that are
*not* coroutine_fn. If they are coroutine_fn, they can call the
bdrv_co_* version directly.
See for example
https://patchew.org/QEMU/20221013123711.620631-1-pbonz...@redhat.com/20221013123711.620631-17-pbonz...@redhat.com/.
Paolo