Re: [Qemu-devel] [PATCH v3 1/4] coroutine: introduce coroutines

2011-05-13 Thread Stefan Hajnoczi
On Fri, May 13, 2011 at 11:32 AM, Paolo Bonzini wrote: > On 05/13/2011 11:26 AM, Stefan Hajnoczi wrote: >> >> This coroutines implementation is based on the gtk-vnc implementation >> written by Anthony Liguori  but it has been >> significantly rewritten by Kevin Wolf  to use >> setjmp()/longjmp()

Re: [Qemu-devel] [PATCH v3 1/4] coroutine: introduce coroutines

2011-05-13 Thread Paolo Bonzini
On 05/13/2011 11:26 AM, Stefan Hajnoczi wrote: This coroutines implementation is based on the gtk-vnc implementation written by Anthony Liguori but it has been significantly rewritten by Kevin Wolf to use setjmp()/longjmp() instead of the more expensive swapcontext(). Since in the future we'l

[Qemu-devel] [PATCH v3 1/4] coroutine: introduce coroutines

2011-05-13 Thread Stefan Hajnoczi
From: Kevin Wolf Asynchronous code is becoming very complex. At the same time synchronous code is growing because it is convenient to write. Sometimes duplicate code paths are even added, one synchronous and the other asynchronous. This patch introduces coroutines which allow code that looks sy