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

2011-05-13 Thread Kevin Wolf
Am 12.05.2011 21:22, schrieb Stefan Hajnoczi: On Thu, May 12, 2011 at 7:12 PM, Blue Swirl blauwir...@gmail.com wrote: On Thu, May 12, 2011 at 12:54 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c new file mode 100644 index

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

2011-05-12 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com 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

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

2011-05-12 Thread Blue Swirl
On Thu, May 12, 2011 at 12:54 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: From: Kevin Wolf kw...@redhat.com 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,

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

2011-05-12 Thread Stefan Hajnoczi
On Thu, May 12, 2011 at 7:12 PM, Blue Swirl blauwir...@gmail.com wrote: On Thu, May 12, 2011 at 12:54 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c new file mode 100644 index 000..3b14ebf --- /dev/null +++