Re: [Qemu-devel] [RFC][PATCH 05/12] coroutine: Add coroutines

2011-01-27 Thread Stefan Hajnoczi
On Wed, Jan 26, 2011 at 05:29:23PM +0200, Avi Kivity wrote: > On 01/22/2011 11:29 AM, Stefan Hajnoczi wrote: > >Add functions to create coroutines and transfer control into a coroutine > >and back out again. > > > > > >+ > >+struct Coroutine { > >+struct coroutine co; > >+}; > >+ > > > >+/** >

Re: [Qemu-devel] [RFC][PATCH 05/12] coroutine: Add coroutines

2011-01-26 Thread Anthony Liguori
On 01/26/2011 09:29 AM, Avi Kivity wrote: On 01/22/2011 11:29 AM, Stefan Hajnoczi wrote: Add functions to create coroutines and transfer control into a coroutine and back out again. + +struct Coroutine { +struct coroutine co; +}; + +/** + * Coroutine entry point + * + * When the coroutine

Re: [Qemu-devel] [RFC][PATCH 05/12] coroutine: Add coroutines

2011-01-26 Thread Avi Kivity
On 01/22/2011 11:29 AM, Stefan Hajnoczi wrote: Add functions to create coroutines and transfer control into a coroutine and back out again. + +struct Coroutine { +struct coroutine co; +}; + +/** + * Coroutine entry point + * + * When the coroutine is entered for the first time, opaque is p

[Qemu-devel] [RFC][PATCH 05/12] coroutine: Add coroutines

2011-01-22 Thread Stefan Hajnoczi
Add functions to create coroutines and transfer control into a coroutine and back out again. Signed-off-by: Stefan Hajnoczi --- Makefile.objs|2 +- qemu-coroutine.c | 40 qemu-coroutine.h | 76 ++ 3 file