Re: [Qemu-devel] [PATCH 04/35] coroutine: remove coroutine_fn from qemu_coroutine_self()

2017-07-05 Thread Paolo Bonzini
On 05/07/2017 15:39, Marc-André Lureau wrote: >>> The function may be safely called from non-coroutine context. >>> >>> Signed-off-by: Marc-André Lureau >> It can, but it shouldn't... What are the callers? > > There is aio_co_enter() & qemu_aio_coroutine_enter()

Re: [Qemu-devel] [PATCH 04/35] coroutine: remove coroutine_fn from qemu_coroutine_self()

2017-07-05 Thread Marc-André Lureau
Hi - Original Message - > On 05/07/2017 00:03, Marc-André Lureau wrote: > > The function may be safely called from non-coroutine context. > > > > Signed-off-by: Marc-André Lureau > > It can, but it shouldn't... What are the callers? There is

Re: [Qemu-devel] [PATCH 04/35] coroutine: remove coroutine_fn from qemu_coroutine_self()

2017-07-05 Thread Paolo Bonzini
On 05/07/2017 00:03, Marc-André Lureau wrote: > The function may be safely called from non-coroutine context. > > Signed-off-by: Marc-André Lureau It can, but it shouldn't... What are the callers? Paolo > --- > include/qemu/coroutine.h | 2 +- > 1 file changed,

[Qemu-devel] [PATCH 04/35] coroutine: remove coroutine_fn from qemu_coroutine_self()

2017-07-04 Thread Marc-André Lureau
The function may be safely called from non-coroutine context. Signed-off-by: Marc-André Lureau --- include/qemu/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index