Re: [Qemu-devel] [PATCH v7 2/4] coroutine: implement coroutines using gthread

2011-07-26 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 9:38 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 07/25/2011 03:04 PM, Stefan Hajnoczi wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com On platforms that don't support makecontext(3) use gthread based coroutine implementation. Darwin has

[Qemu-devel] [PATCH v7 2/4] coroutine: implement coroutines using gthread

2011-07-25 Thread Stefan Hajnoczi
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com On platforms that don't support makecontext(3) use gthread based coroutine implementation. Darwin has makecontext(3) but getcontext(3) is stubbed out to return ENOTSUP. Andreas Färber andreas.faer...@web.de debugged this and contributed the

Re: [Qemu-devel] [PATCH v7 2/4] coroutine: implement coroutines using gthread

2011-07-25 Thread Anthony Liguori
On 07/25/2011 03:04 PM, Stefan Hajnoczi wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com On platforms that don't support makecontext(3) use gthread based coroutine implementation. Darwin has makecontext(3) but getcontext(3) is stubbed out to return ENOTSUP. Andreas