Re: [PATCH experiment 14/16] util: introduce C++ stackless coroutine backend

2022-03-14 Thread Paolo Bonzini
Il lun 14 mar 2022, 15:37 Stefan Hajnoczi ha scritto: > On Mon, Mar 14, 2022 at 10:32:01AM +0100, Paolo Bonzini wrote: > > +// > > + > > +// CoroutineFn does not even need anything more than what > > +// BaseCoroutine provides, so it's just a type alias. The magic > > +/

Re: [PATCH experiment 14/16] util: introduce C++ stackless coroutine backend

2022-03-14 Thread Stefan Hajnoczi
On Mon, Mar 14, 2022 at 10:32:01AM +0100, Paolo Bonzini wrote: > +// > + > +// CoroutineFn does not even need anything more than what > +// BaseCoroutine provides, so it's just a type alias. The magic > +// is all in ValuePromise. > +// > +// Suspended CoroutineFns are cha

[PATCH experiment 14/16] util: introduce C++ stackless coroutine backend

2022-03-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 44 +- include/qemu/coroutine.h | 445 +- include/qemu/coroutine_int.h | 8 + util/coroutine-stackless.cc | 145 ++ util/meson.build