Re: [Qemu-devel] [PATCH V5 0/2] Threadlets: A generic task offloading framework

2010-07-08 Thread Gautham R Shenoy
Hi, I couldn't see this in the mainline codebase. Wondering if something else needs to be done in this patch-set. Thanks and Regards gautham. On Tue, Jun 22, 2010 at 04:48:08PM +0530, Gautham R Shenoy wrote: > Hi, > > This is the v5 of the patch-series to have a generic asy

[Qemu-devel] [PATCH V5 2/2] qemu: Convert AIO code to use threadlets.

2010-06-22 Thread Gautham R Shenoy
This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 152

[Qemu-devel] [PATCH V5 1/2] qemu: Generic task offloading framework: threadlets

2010-06-22 Thread Gautham R Shenoy
reads. [...@in.ibm.com: Facelift of the code, Documentation, cancel_threadlet and other helpers] Signed-off-by: Aneesh Kumar K.V Signed-off-by: Gautham R Shenoy --- Makefile.objs |3 + docs/async-support.txt | 141 qemu-threadlets.c |

[Qemu-devel] [PATCH V5 0/2] Threadlets: A generic task offloading framework

2010-06-22 Thread Gautham R Shenoy
the control over to the IO thread so that the latter can handle the post_blocking_operation(). The patch series passed fsstress test without any issues. Could it be considered for inclusion ? --- Aneesh Kumar K.V (1): qemu: Generic task offloading framework: threadlets Gautham R Shenoy (1

Re: [Qemu-devel] Re: [PATCH V4 2/3] qemu: Generic task offloading framework: threadlets

2010-06-17 Thread Gautham R Shenoy
On Wed, Jun 16, 2010 at 06:06:35PM +0200, Corentin Chary wrote: > On Wed, Jun 16, 2010 at 5:52 PM, Anthony Liguori > wrote: > > On 06/16/2010 10:47 AM, Corentin Chary wrote: > >> > >> I would need something like flush_threadlet_queue for the vnc server. > >> I need it in > >> vnc_disconnect(), vnc

Re: [Qemu-devel] Re: [PATCH V4 2/3] qemu: Generic task offloading framework: threadlets

2010-06-17 Thread Gautham R Shenoy
On Wed, Jun 16, 2010 at 10:20:36AM -0500, Anthony Liguori wrote: > On 06/16/2010 09:52 AM, Paolo Bonzini wrote: >> BTW it's obviously okay with signaling the condition when a threadlet is >> submitted. But when something affects all queue's workers >> (flush_threadlet_queue) you want a broadcast

[Qemu-devel] Re: [PATCH V4 2/3] qemu: Generic task offloading framework: threadlets

2010-06-17 Thread Gautham R Shenoy
On Wed, Jun 16, 2010 at 02:34:16PM +0200, Paolo Bonzini wrote: >> +block-obj-y += qemu-thread.o >> +block-obj-y += async-work.o > > These should be (at least for now) block-obj-$(CONFIG_POSIX). Right. Will fix that. > >> +while (QTAILQ_EMPTY(&(queue->request_list))&& >> + (re

[Qemu-devel] [PATCH V4 3/3] qemu: Convert AIO code to use threadlets.

2010-06-16 Thread Gautham R Shenoy
This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 152

[Qemu-devel] [PATCH V4 2/3] qemu: Generic task offloading framework: threadlets

2010-06-16 Thread Gautham R Shenoy
wait till all the earlier queued tasks have been executed, is also provided. [...@in.ibm.com: Facelift of the code, cancel_threadlet, flush_threadlet_queue and other minor helpers.] Signed-off-by: Aneesh Kumar K.V Signed-off-by: Gautham R Shenoy --- Makefile.objs |3 + async-work

[Qemu-devel] [PATCH V4 0/3] qemu: Threadlets: A generic task offloading framework

2010-06-16 Thread Gautham R Shenoy
tress test without any issues. Could it be considered for inclusion ? --- Aneesh Kumar K.V (1): qemu: Generic task offloading framework: threadlets Gautham R Shenoy (2): qemu: Add qemu-barrier support to qemu-thread framework. qemu: Convert AIO code to use threa

[Qemu-devel] [PATCH V4 1/3] qemu: Add qemu-barrier support to qemu-thread framework.

2010-06-16 Thread Gautham R Shenoy
Signed-off-by: Gautham R Shenoy --- qemu-thread.c | 23 +++ qemu-thread.h |9 + 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/qemu-thread.c b/qemu-thread.c index 3923db7..7c445b6 100644 --- a/qemu-thread.c +++ b/qemu-thread.c @@ -161,3 +161,26

Re: [Qemu-devel] [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 08:16:19AM -0500, Anthony Liguori wrote: >> --- /dev/null >> +++ b/async-work.c >> @@ -0,0 +1,136 @@ >> +/* >> + * Async work support >> + * >> + * Copyright IBM, Corp. 2010 >> + * >> + * Authors: >> + * Aneesh Kumar K.V >> + * >> + * This work is licensed under the terms o

Re: [Qemu-devel] Re: [PATCH V3 1/3] qemu: Add qemu-wrappers for pthread_attr_t

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 03:19:34PM +0200, Corentin Chary wrote: > On Fri, Jun 4, 2010 at 3:07 PM, Anthony Liguori wrote: > > On 06/03/2010 07:31 AM, Paolo Bonzini wrote: > >> > >> On 06/03/2010 10:56 AM, Gautham R Shenoy wrote: > >>> > >>

[Qemu-devel] [PATCH V3 3/3] qemu: Convert AIO code to use the generic threading infrastructure.

2010-06-03 Thread Gautham R Shenoy
This patch makes the paio subsystem use the generic work offloading infrastructure, there by decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 155

[Qemu-devel] [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-03 Thread Gautham R Shenoy
ch as virtio-9p could make use of it for offloading tasks that could block. [...@in.ibm.com: work_item_pool, async_work_init, async_work_release, async_cancel_work] Signed-off-by: Aneesh Kumar K.V Signed-off-by: Gautham R Shenoy --- Makefile.objs |3 + async-work.c |

[Qemu-devel] [PATCH V3 1/3] qemu: Add qemu-wrappers for pthread_attr_t

2010-06-03 Thread Gautham R Shenoy
Add qemu wrappers for pthread_attr_t handling. Signed-off-by: Gautham R Shenoy --- qemu-thread.c | 34 ++ qemu-thread.h | 11 +++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/qemu-thread.c b/qemu-thread.c index 3923db7..524860c

[Qemu-devel] [PATCH V3 0/3] qemu: Make AIO threading framework generic.

2010-06-03 Thread Gautham R Shenoy
fsstress test without any issues. Could it be considered for inclusion ? --- Aneesh Kumar K.V (1): qemu: Generic asynchronous threading framework to offload tasks Gautham R Shenoy (2): qemu: Add qemu-wrappers for pthread_attr_t qemu: Convert AIO code to use the generic

Re: [Qemu-devel] KVM call agenda for May 25

2010-05-24 Thread Gautham R Shenoy
On Mon, May 24, 2010 at 05:21:04PM -0700, Chris Wright wrote: > Please send in any agenda items you are interested in covering. > Sorry for the delayed response. If the community is interested, I would like to discuss the Generic Asynchronous task offloading framework patches posted to the commu

[Qemu-devel] [RFC/ PATCH 4/4] virtio-9p: convert lstat to use async infrastructure.

2010-05-24 Thread Gautham R Shenoy
complete() operation for this particular v9fs_stat() operation. Signed-off-by: Gautham R Shenoy --- hw/virtio-9p.c | 34 ++ hw/virtio-9p.h |4 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index f8f60d3

[Qemu-devel] [RFC/ PATCH 3/4] virtio-9p: Add async helper functions

2010-05-24 Thread Gautham R Shenoy
any other guest operations while the processing of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy --- hw/virtio-9p.c | 167 1 files changed, 167 insertions(+), 0 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index

[Qemu-devel] [RFC/ PATCH 2/4] qemu: Convert AIO code to use the generic threading infrastructure.

2010-05-24 Thread Gautham R Shenoy
This patch makes the paio subsystem use the generic work offloading infrastructure, there by decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 155

[Qemu-devel] [RFC/ PATCH 1/4] qemu: Generic asynchronous threading framework to offload tasks

2010-05-24 Thread Gautham R Shenoy
ch as virtio-9p could make use of it for offloading tasks that could block. [...@in.ibm.com: work_item_pool, async_work_init, async_work_release, async_cancel_work] Signed-off-by: Aneesh Kumar K.V Signed-off-by: Gautham R Shenoy --- Makefile.objs |2 + async-work.c |

[Qemu-devel] [RFC/ PATCH 0/4] qemu: Extend AIO threading framework to a generic one.

2010-05-24 Thread Gautham R Shenoy
asynchronous threading framework to offload tasks Gautham R Shenoy (3): qemu: Convert AIO code to use the generic threading infrastructure. virtio-9p: Add async helper functions virtio-9p: convert lstat to use async infrastructure. Makefile.objs |2 + async-work.c

[Qemu-devel] [RFC/ PATCH 1/2] qemu: Create a generic asynchronous threading framework to offload tasks

2010-05-09 Thread Gautham R Shenoy
ch as virtio-9p could make use of it for offloading tasks that could block. [...@in.ibm.com: work_item_pool, async_work_init, async_work_release, async_cancel_work] Signed-off-by: Aneesh Kumar K.V Signed-off-by: Gautham R Shenoy --- Makefile.objs |2 + async-work.c |

[Qemu-devel] [RFC/ PATCH 2/2] qemu: Convert paio code to use the generic threading infrastructure.

2010-05-09 Thread Gautham R Shenoy
This patch makes the paio subsystem use the generic work offloading infrastructure. The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 156 ++-- 1 files changed, 30 insertions(+), 126 deletions

[Qemu-devel] [RFC/ PATCH 0/2] qemu: Asynchronous task offloading framework.

2010-05-09 Thread Gautham R Shenoy
fsstress test without any issues. Awaiting your comments. --- Aneesh Kumar K.V (1): qemu: Create a generic asynchronous threading framework to offload tasks Gautham R Shenoy (1): qemu: Convert paio code to use the generic threading infrastructure. Makefile.objs |2 + async