[Qemu-devel] [v1 PATCH 0/3]: Use GLib threadpool in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
Hi, This patchset enables the use of GLib threadpool infrastructure in 9pfs. It contains the following patches: 1/3 - Move the paio_signal_handler to a generic location. 2/3 - Helper routines to use GLib threadpool infrastructure in 9pfs. 3/3 - Convert v9fs_stat to threaded model. As a

[Qemu-devel] [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date: Thu Mar 10 14:45:25 2011 +0530 Move the paio_signal_handler to a generic location. The paio subsystem uses the signal, SIGUSR2. So move the signal handler

[Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines to use GLib threadpool infrastructure in 9pfs. This patch creates helper routines to make use

[Qemu-devel] [v1 PATCH 3/3]: Convert v9fs_stat to threaded model.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Harsh Prateek Bora ha...@linux.vnet.ibm.com Date: Mon Mar 14 13:55:37 2011 +0530 Convert v9fs_stat to threaded model. This patch converts v9fs_stat syscall of 9pfs to threaded model by making use

[Qemu-devel] Re: [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location.

2011-03-15 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-03-15 11:38:03]: On Tue, Mar 15, 2011 at 10:36 AM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: * Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date:   Thu Mar 10 14:45:25

Re: [Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Harsh Bora ha...@linux.vnet.ibm.com [2011-03-15 17:15:48]: On 03/15/2011 04:08 PM, Arun R Bharadwaj wrote: * Arun R Bharadwaja...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaja...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines

[Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Anthony Liguori aligu...@us.ibm.com [2011-03-15 08:13:19]: On 03/15/2011 05:38 AM, Arun R Bharadwaj wrote: * Arun R Bharadwaja...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaja...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines

[Qemu-devel] [PATCH 00/12] Threadlet Infrastructure

2011-01-20 Thread Arun R Bharadwaj
... --- Arun R Bharadwaj (12): Add aiocb_mutex and aiocb_completion. Introduce work concept in posix-aio-compat.c Add callback function to ThreadletWork structure. Add ThreadletQueue. Threadlet: Add submit_work threadlet API. Threadlet: Add dequeue_work threadlet

[Qemu-devel] [PATCH 01/12] Add aiocb_mutex and aiocb_completion.

2011-01-20 Thread Arun R Bharadwaj
the Makefile entry to compile qemu-thread.c when CONFIG_POSIX is set, instead of the unused CONFIG_THREAD. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Makefile.objs |2 +- posix-aio-compat.c | 39

[Qemu-devel] [PATCH 03/12] Add callback function to ThreadletWork structure.

2011-01-20 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 89

[Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-20 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan

[Qemu-devel] [PATCH 07/12] Remove thread_create routine.

2011-01-20 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 29 ++--- 1 files changed, 2 insertions(+), 27 deletions(-) diff --git

[Qemu-devel] [PATCH 04/12] Add ThreadletQueue.

2011-01-20 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed

[Qemu-devel] [PATCH 05/12] Threadlet: Add submit_work threadlet API.

2011-01-20 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 33 ++--- 1 files changed

[Qemu-devel] [PATCH 11/12] Threadlets: Add functionality to create private queues.

2011-01-20 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- qemu-threadlet.c | 85

[Qemu-devel] [PATCH 09/12] Remove all instances of CONFIG_THREAD

2011-01-20 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH 06/12] Threadlet: Add dequeue_work threadlet API and remove active field.

2011-01-20 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix

[Qemu-devel] [PATCH 02/12] Introduce work concept in posix-aio-compat.c

2011-01-20 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions

[Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-20 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 137

[Qemu-devel] [PATCH 12/12] Threadlets: Add documentation

2011-01-20 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0

Re: [Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:57:45]: On Thu, Jan 13, 2011 at 12:15 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. qemu-threadlet.c would

Re: [Qemu-devel] [PATCH 00/12] Threadlets Infrastructure.

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 10:32:24]: This series needs a new pair of eyes for review. I'm probably missing things here after seeing it many times. posix-aio-compat.c:handle_work() doesn't need to take aiocb_mutex for container_of(), which just calculates an address

Re: [Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:56:58]: On Thu, Jan 13, 2011 at 12:14 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: +static void threadlet_io_completion_signal_handler(int signum) +{ +    qemu_service_io(); +} + +static void

Re: [Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-18 06:31:34]: On Tue, Jan 18, 2011 at 4:43 AM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: * Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:56:58]: On Thu, Jan 13, 2011 at 12:14 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote

[Qemu-devel] [PATCH 00/12] Threadlets Infrastructure.

2011-01-13 Thread Arun R Bharadwaj
. * bonnie test run on fedora guest on block device. * iozone -l test run on fedora guest to stress the posix-aio-compat.c code. (suggested by Stefan) * windows guest installation test and iozone -l test run on windows guest. The following series implements... --- Arun R Bharadwaj (12): Add

[Qemu-devel] [PATCH 02/12] Introduce work concept in posix-aio-compat.c

2011-01-13 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index

[Qemu-devel] [PATCH 01/12] Add aiocb_mutex and aiocb_completion.

2011-01-13 Thread Arun R Bharadwaj
the Makefile entry to compile qemu-thread.c when CONFIG_POSIX is set, instead of the unused CONFIG_THREAD. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |2 +- posix-aio-compat.c | 39 --- 2 files changed, 29 insertions

[Qemu-devel] [PATCH 03/12] Add callback function to ThreadletWork structure.

2011-01-13 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 89 +--- 1 files changed, 50 insertions(+), 39

[Qemu-devel] [PATCH 04/12] Add ThreadletQueue.

2011-01-13 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix

[Qemu-devel] [PATCH 07/12] Remove thread_create routine.

2011-01-13 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 29 ++--- 1 files changed, 2 insertions(+), 27 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 2d73846

[Qemu-devel] [PATCH 05/12] Threadlet: Add submit_work threadlet API.

2011-01-13 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 33 ++--- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/posix-aio

[Qemu-devel] [PATCH 06/12] Threadlet: Add dequeue_work threadlet API and remove active field.

2011-01-13 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 38

[Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-13 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |1 posix-aio-compat.c | 144 qemu

[Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-13 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio

[Qemu-devel] [PATCH 11/12] Threadlets: Add functionality to create private queues.

2011-01-13 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- qemu-threadlets.c | 75 ++--- qemu-threadlets.h |4 +++ 2 files changed, 58

[Qemu-devel] [PATCH 09/12] Remove all instances of CONFIG_THREAD

2011-01-13 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a079a49..addf733 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 12/12] Threadlets: Add documentation

2011-01-13 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 docs/async-support.txt diff

[Qemu-devel] Re: [PATCH 03/13] Add callback function to ThreadletWork structure.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:54:17]: On Tue, Jan 04, 2011 at 10:57:20AM +0530, Arun R Bharadwaj wrote: +static void aio_thread(ThreadletWork *work) +{ aio_thread() is not a descriptive name here. This isn't the top-level thread function, just the work

[Qemu-devel] Re: [PATCH 01/13] Add aiocb_mutex and aiocb_completion.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:53:44]: On Tue, Jan 04, 2011 at 10:57:08AM +0530, Arun R Bharadwaj wrote: @@ -545,13 +555,19 @@ static void paio_cancel(BlockDriverAIOCB *blockacb) } mutex_unlock(lock); -if (active) { -/* fail safe

[Qemu-devel] Re: [PATCH 06/13] Threadlet: Add dequeue_work threadlet API

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:55:46]: On Tue, Jan 04, 2011 at 10:57:39AM +0530, Arun R Bharadwaj wrote: @@ -574,33 +574,39 @@ static void paio_remove(struct qemu_paiocb *acb) } } -static void paio_cancel(BlockDriverAIOCB *blockacb

[Qemu-devel] Re: [PATCH 08/13] Remove thread_create routine.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:56:00]: On Tue, Jan 04, 2011 at 10:57:49AM +0530, Arun R Bharadwaj wrote: Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 19

[Qemu-devel] Re: [PATCH 04/13] Add ThreadletQueue.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:54:38]: On Tue, Jan 04, 2011 at 10:57:27AM +0530, Arun R Bharadwaj wrote: @@ -66,15 +81,10 @@ typedef struct PosixAioState { struct qemu_paiocb *first_aio; } PosixAioState; - -static pthread_mutex_t lock

Re: [Qemu-devel] [PATCH 00/13] Threadlets infrastructure.

2011-01-04 Thread Arun R Bharadwaj
* Venkateswararao Jujjuri (JV) jv...@linux.vnet.ibm.com [2011-01-04 15:13:45]: On 1/3/2011 9:27 PM, Arun R Bharadwaj wrote: Hi, This patch series implements threadlets infrastructure in qemu. This is a complete rework of the earlier patch series so that it becomes easier to review

[Qemu-devel] [PATCH 00/13] Threadlets infrastructure.

2011-01-03 Thread Arun R Bharadwaj
Hi, This patch series implements threadlets infrastructure in qemu. This is a complete rework of the earlier patch series so that it becomes easier to review. I have broken down the earlier patch series as asked by Anthony The following series implements... --- Arun R Bharadwaj (13

[Qemu-devel] [PATCH 01/13] Add aiocb_mutex and aiocb_completion.

2011-01-03 Thread Arun R Bharadwaj
the Makefile entry to compile qemu-thread.c when CONFIG_POSIX is set, instead of the unused CONFIG_THREAD. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |2 +- posix-aio-compat.c | 37 - 2 files changed, 29 insertions

[Qemu-devel] [PATCH 02/13] Introduce work concept in posix-aio-compat.c

2011-01-03 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index

[Qemu-devel] [PATCH 03/13] Add callback function to ThreadletWork structure.

2011-01-03 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 88 +--- 1 files changed, 49 insertions(+), 39

[Qemu-devel] [PATCH 04/13] Add ThreadletQueue.

2011-01-03 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix

[Qemu-devel] [PATCH 05/13] Threadlet: Add submit_work threadlet API.

2011-01-03 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 33 ++--- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/posix-aio

[Qemu-devel] [PATCH 06/13] Threadlet: Add dequeue_work threadlet API

2011-01-03 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 46 ++ 1 files changed, 26 insertions(+), 20 deletions(-) diff --git

[Qemu-devel] [PATCH 13/13] Threadlets: Add documentation

2011-01-03 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 docs/async-support.txt diff

[Qemu-devel] [PATCH 09/13] Threadlet: Add aio_signal_handler threadlet API

2011-01-03 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio

[Qemu-devel] [PATCH 07/13] Remove active field in qemu_aiocb structure.

2011-01-03 Thread Arun R Bharadwaj
The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 17 ++--- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 8f1a9b6

[Qemu-devel] [PATCH 12/13] Threadlets: Add functionality to create private queues.

2011-01-03 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- qemu-threadlets.c | 80 ++--- qemu-threadlets.h |4 +++ 2 files changed, 62

[Qemu-devel] [PATCH 08/13] Remove thread_create routine.

2011-01-03 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 19 ++- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index fd9fcfd..3b01c9b

[Qemu-devel] [PATCH 10/13] Remove all instances of CONFIG_THREAD

2011-01-03 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a079a49..addf733 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 11/13] Move threadlet code to qemu-threadlets.c

2011-01-03 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |1 posix-aio-compat.c | 151 qemu

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-18 Thread Arun R Bharadwaj
* Anthony Liguori anth...@codemonkey.ws [2010-11-15 15:13:24]: On 11/15/2010 11:53 AM, Arun R Bharadwaj wrote: From: Gautham R Shenoygautham.she...@gmail.com This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue

[Qemu-devel] [PATCH 0/6] v12: Threadlets: A generic task offloading framework.

2010-11-18 Thread Arun R Bharadwaj
implements... --- Arun R Bharadwaj (5): Make the necessary changes in Makefile and configure file. Move paio_cancel() to new infrastructure. Move qemu_paio_submit() to the new infrastructure. Cleanup posix-aio.compat.c off all the old code. Move threadlets infrastructure

[Qemu-devel] [PATCH 6/6] Add helper functions to enable virtio-9p make use of the threadlets

2010-11-18 Thread Arun R Bharadwaj
of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 164 posix-aio-compat.c | 30

[Qemu-devel] [PATCH 1/6] Make the necessary changes in Makefile and configure file.

2010-11-18 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |2 +- configure |2 -- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index cd5a24b..3b7ec27 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -9,6 +9,7 @@ qobject

[Qemu-devel] [PATCH 2/6] Move paio_cancel() to new infrastructure.

2010-11-18 Thread Arun R Bharadwaj
Move paio_cancel() to new infrastructure and introduce the necessary APIs for this. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 92 ++-- 1 files changed, 74 insertions(+), 18 deletions(-) diff --git a/posix

[Qemu-devel] [PATCH 4/6] Cleanup posix-aio.compat.c off all the old code.

2010-11-18 Thread Arun R Bharadwaj
Cleanup posix-aio.compat.c off all the old code which is now useless after introducing the generic threadlet infrasturcture. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 57 +--- 1 files changed, 1 insertions

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

2010-11-15 Thread Arun R Bharadwaj
-dbench -fsstress -disktest -cpu_hotplug -hackbench -sleeptest Changelog: * Moved the qemu_cond_broadcast to the right place. * Removed unnecessary extern qualifiers. The following series implements... --- Arun R Bharadwaj (1): Move threadlets

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-15 Thread Arun R Bharadwaj
a subsystem to create a private queue with an associated pool of threads. The patch has been tested with fstress. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com Signed-off

[Qemu-devel] [PATCH 2/3] Move threadlets infrastructure to qemu-threadlets.c

2010-11-15 Thread Arun R Bharadwaj
The reason for creating this generic infrastructure is so that other subsystems, such as virtio-9p could make use of it for offloading tasks that could block. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off

[Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-11-15 Thread Arun R Bharadwaj
of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 164 posix-aio-compat.c | 30

Re: [Qemu-devel] [PATCH 2/3] Move threadlets infrastructure to qemu-threadlets.c

2010-11-11 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2010-11-10 13:47:22]: On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: The reason for creating this generic infrastructure is so that other subsystems, such as virtio-9p could make use of it for offloading tasks

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

2010-11-10 Thread Arun R Bharadwaj
=y from the configure code. The following series implements... --- Aneesh Kumar K.V (1): Make paio subsystem use threadlets infrastructure Arun R Bharadwaj (1): Move threadlets infrastructure to qemu-threadlets.c Gautham R Shenoy (1): Add helper functions to enable virtio

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Arun R Bharadwaj
a subsystem to create a private queue with an associated pool of threads. The patch has been tested with fstress. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com Signed

[Qemu-devel] [PATCH 2/3] Move threadlets infrastructure to qemu-threadlets.c

2010-11-10 Thread Arun R Bharadwaj
The reason for creating this generic infrastructure is so that other subsystems, such as virtio-9p could make use of it for offloading tasks that could block. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off

[Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-11-10 Thread Arun R Bharadwaj
of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 164 posix-aio-compat.c | 30

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2010-11-10 13:45:29]: On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: @@ -301,106 +431,58 @@ static ssize_t handle_aiocb_rw(struct qemu_paiocb *aiocb)     return nbytes;  } -static void *aio_thread(void *unused

Re: [Qemu-devel] [PATCH 2/3] Move threadlets infrastructure to qemu-threadlets.c

2010-11-10 Thread Arun R Bharadwaj
* Blue Swirl blauwir...@gmail.com [2010-11-10 17:29:30]: On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: The reason for creating this generic infrastructure is so that other subsystems, such as virtio-9p could make use of it for offloading tasks

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-09 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2010-11-08 21:29:12]: On Mon, Nov 8, 2010 at 2:33 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: diff --git a/Makefile.objs b/Makefile.objs index cd5a24b..3b7ec27 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -9,6 +9,7 @@ qobject-obj-y

[Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-11-08 Thread Arun R Bharadwaj
of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 165 posix-aio-compat.c | 33

[Qemu-devel] [PATCH 2/3] Move threadlets infrastructure to qemu-threadlets.c

2010-11-08 Thread Arun R Bharadwaj
The reason for creating this generic infrastructure is so that other subsystems, such as virtio-9p could make use of it for offloading tasks that could block. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off

[Qemu-devel] [REFACTORED CODE] [PATCH 0/3] Threadlets: A generic task offloading framework.

2010-11-08 Thread Arun R Bharadwaj
in paio_cancel and use mutex to wait for request to complete. * Address the issue of dead code due to MAX_GLOBAL_THREADS = MIN_GLOBAL_THREADS The following series implements... --- Aneesh Kumar K.V (1): Make paio subsystem use threadlets infrastructure Arun R Bharadwaj (1): Move threadlets

Re: [Qemu-devel] [REFACTORED CODE] [PATCH 0/3] Threadlets: A generic task offloading framework.

2010-11-08 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2010-11-08 16:16:50]: Hi, This is the v9 of the refactored patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Testing carried out: I have run KVM autotest suite with this patch. This test

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-08 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2010-11-08 16:16:50]: Make paio subsystem use threadlets infrastructure From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-08 Thread Arun R Bharadwaj
a subsystem to create a private queue with an associated pool of threads. The patch has been tested with fstress. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com Signed

Re: [Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-11-05 Thread Arun R Bharadwaj
* Anthony Liguori anth...@codemonkey.ws [2010-11-01 08:40:36]: On 10/26/2010 09:14 AM, Arun R Bharadwaj wrote: +Q.7: Apart from the global pool of threads, can I have my own private Queue ? +A.7: Yes, the threadlets framework allows subsystems to create their own private + queues

[Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-26 Thread Arun R Bharadwaj
-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |3 + docs/async-support.txt | 141 + qemu-threadlets.c | 167 qemu-threadlets.h | 48 ++ 4 files changed, 358

[Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-26 Thread Arun R Bharadwaj
-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Acked-by: Balbir Singh bal...@linux.vnet.ibm.com --- posix-aio-compat.c | 170 ++-- 1 files changed, 33 insertions(+), 137 deletions(-) diff --git

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

2010-10-26 Thread Arun R Bharadwaj
Hi, This is the v8 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Changes from v7: * A few minor

[Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-10-26 Thread Arun R Bharadwaj
of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 164 posix-aio-compat.c | 46

Re: [Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-21 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2010-10-20 10:30:38]: On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: From: Gautham R Shenoy e...@in.ibm.com This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading

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

2010-10-21 Thread Arun R Bharadwaj
Hi, This is the v7 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Request to consider pulling this series as discussed during the Qemu-devel call. V6 can be found here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg44344.html

[Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-21 Thread Arun R Bharadwaj
-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Acked-by: Balbir Singh bal...@linux.vnet.ibm.com --- posix-aio-compat.c | 170 ++-- 1 files changed, 33 insertions(+), 137 deletions(-) diff --git

[Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-21 Thread Arun R Bharadwaj
-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |3 + docs/async-support.txt | 141 + qemu-threadlets.c | 167 qemu-threadlets.h | 48 ++ 4 files changed, 358

Re: [Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-10-21 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2010-10-21 17:40:55]: From: Gautham R Shenoy e...@in.ibm.com infrastructure for offloading blocking tasks such as making posix calls on to the helper threads and handle the post_posix_operations() from the context of the iothread. This frees

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

2010-10-19 Thread Arun R Bharadwaj
Hi, This is the v6 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Request to consider pulling this series as discussed during the Qemu-devel call. V5 can be found here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg43827.html

[Qemu-devel] [PATCH 3/3] Add helper functions for virtio-9p to use threadlets

2010-10-19 Thread Arun R Bharadwaj
thread to process any other guest operations while the processing of v9fs_io is in progress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- hw/virtio-9p.c | 165

[Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-19 Thread Arun R Bharadwaj
From: Gautham R Shenoy e...@in.ibm.com 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 e...@in.ibm.com Signed-off-by:

[Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-19 Thread Arun R Bharadwaj
with an associated pool of threads. [...@in.ibm.com: Facelift of the code, Documentation, cancel_threadlet and other helpers] Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy e...@in.ibm.com Signed-off-by: Sripathi Kodi sripat...@in.ibm.com Signed-off-by: Arun R

Re: [Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-18 Thread Arun R Bharadwaj
* Avi Kivity a...@redhat.com [2010-10-17 10:57:23]: On 10/14/2010 11:32 PM, Venkateswararao Jujjuri (JV) wrote: Blocking is somewhat against the spirit of the thing, no? While I agree that the current cancel API is hard to use correctly, blocking defeats the purpose of the

[Qemu-devel] [RFC PATCH 0/9] Second threading model.

2010-10-14 Thread Arun R Bharadwaj
Hi, This patch implements the second threading model. The first model can be referred here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg43846.html The features of the second threading model: * The VCPU thread runs the Qemu code until the first blocking call is encountered. * The

[Qemu-devel] [PATCH 2/9] Introduce lock fid_list_lock to protect the fid list.

2010-10-14 Thread Arun R Bharadwaj
From: Sripathi Kodi sripat...@in.ibm.com Currently it is a normal mutex, but I will change it into a rw mutex. This should be held in read mode while looking up and in write mode while updating the list. Signed-off-by: Sripathi Kodi sripat...@in.ibm.com --- hw/virtio-9p.c | 32

[Qemu-devel] [PATCH 3/9] Global rename lock

2010-10-14 Thread Arun R Bharadwaj
From: Sripathi Kodi sripat...@in.ibm.com --- hw/virtio-9p.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 02a4ec4..ef6175a 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -21,6 +21,8 @@ int debug_9p_pdu; +QemuRWMutex

[Qemu-devel] [PATCH 4/9] Convert stat into 2nd threading model

2010-10-14 Thread Arun R Bharadwaj
From: Sripathi Kodi sripat...@in.ibm.com In this model we hand over the vcpu thread only executes till the first blocking operation. It then hands over the call to the worker thread, which does everything needed to complete the call. It can make multiple blocking calls. It finally signals the IO

  1   2   >