From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFPLB-0002tW-Lk for qemu-devel@nongnu.org; Mon, 08 Nov 2010 05:52:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFPL6-0007Jk-Nf for qemu-devel@nongnu.org; Mon, 08 Nov 2010 05:52:43 -0500 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:54179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFPL5-0007Id-SJ for qemu-devel@nongnu.org; Mon, 08 Nov 2010 05:52:40 -0500 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp07.in.ibm.com (8.14.4/8.13.1) with ESMTP id oA8Akpev006833 for ; Mon, 8 Nov 2010 16:16:51 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oA8AkpkS3469344 for ; Mon, 8 Nov 2010 16:16:51 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oA8Ako4s010801 for ; Mon, 8 Nov 2010 21:46:50 +1100 Received: from localhost6.localdomain6 (Crystal-Planet.in.ibm.com [9.124.35.29]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oA8Akobg010798 for ; Mon, 8 Nov 2010 21:46:50 +1100 From: Arun R Bharadwaj Date: Mon, 08 Nov 2010 16:16:50 +0530 Message-ID: <20101108104542.6769.22583.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [REFACTORED CODE] [PATCH 0/3] Threadlets: A generic task offloading framework. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, This is the v9 of the refactored patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Changes from earlier iteration: * Code is refactored such that it reflects the following: patch1: In-place code changes in paio subsystem to use the generic threadlets infrastructure. patch2: Move the threadlets infrastructure to a new file - qemu-threadlets.c patch3: Add helper functions to enable virtio-9p make use of the threadlets * Remove the infinite while loop 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 infrastructure to qemu-threadlets.c Gautham R Shenoy (1): Add helper functions to enable virtio-9p make use of the threadlets Makefile.objs | 3 - docs/async-support.txt | 141 ++++++++++++++++++++++++++++++++ hw/virtio-9p.c | 165 +++++++++++++++++++++++++++++++++++++ posix-aio-compat.c | 212 ++++++++++++------------------------------------ qemu-threadlets.c | 188 +++++++++++++++++++++++++++++++++++++++++++ qemu-threadlets.h | 49 +++++++++++ vl.c | 3 + 7 files changed, 599 insertions(+), 162 deletions(-) create mode 100644 docs/async-support.txt create mode 100644 qemu-threadlets.c create mode 100644 qemu-threadlets.h -- arun