Re: [Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support

2011-09-05 Thread Kevin Wolf
Am 24.08.2011 09:57, schrieb Peter A. G. Crosthwaite: > Add a function co_queue_yield_to_next() which will immediately transfer > control to the coroutine at the head of a co queue. This can be used for > implementing simple work queues where the manager of a co-queue only > needs to restart queued

Re: [Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support

2011-08-25 Thread Stefan Hajnoczi
On Thu, Aug 25, 2011 at 04:46:59PM +1000, Peter Crosthwaite wrote: > Hi Stefan, > > I have ccd you on a RFC containing the work that this patch uses. I have > also changed the name of the function to co_queue_enter_next() as i think > yield was not the appropriate name. The idea is the top level t

Re: [Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support

2011-08-24 Thread Peter Crosthwaite
Hi Stefan, I have ccd you on a RFC containing the work that this patch uses. I have also changed the name of the function to co_queue_enter_next() as i think yield was not the appropriate name. The idea is the top level thread which is managing the work queue can transfer into coroutine context wi

Re: [Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support

2011-08-24 Thread Stefan Hajnoczi
On Wed, Aug 24, 2011 at 05:57:51PM +1000, Peter A. G. Crosthwaite wrote: > Add a function co_queue_yield_to_next() which will immediately transfer > control to the coroutine at the head of a co queue. This can be used for > implementing simple work queues where the manager of a co-queue only > need

[Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support

2011-08-24 Thread Peter A. G. Crosthwaite
Add a function co_queue_yield_to_next() which will immediately transfer control to the coroutine at the head of a co queue. This can be used for implementing simple work queues where the manager of a co-queue only needs to restart queued routines one at a time. Signed-off-by: Peter A. G. Crosthwai