From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57604 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdM4I-0007W3-81 for qemu-devel@nongnu.org; Thu, 13 Jan 2011 07:14:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdM4H-0001bw-AF for qemu-devel@nongnu.org; Thu, 13 Jan 2011 07:14:18 -0500 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:56174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdM4F-0001b6-5o for qemu-devel@nongnu.org; Thu, 13 Jan 2011 07:14:17 -0500 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp06.au.ibm.com (8.14.4/8.13.1) with ESMTP id p0DCDpIi014455 for ; Thu, 13 Jan 2011 23:13:51 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0DCEBGu1044526 for ; Thu, 13 Jan 2011 23:14:12 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0DCEBuD004664 for ; Thu, 13 Jan 2011 23:14:11 +1100 From: Arun R Bharadwaj Date: Thu, 13 Jan 2011 17:44:09 +0530 Message-ID: <20110113120837.4487.95784.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 00/12] Threadlets Infrastructure. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@linux.vnet.ibm.com, jvrao@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com Hi, This series implements threadlets infrastructure: Changelog: * Changed the name aio_thread to handle_work. * Corrected the usage of aiocb->ret which has to be accessed under aiocb_mutex. * Merged the patche which add dequeue_work with the patch which removes the unused active field in paio structure so that the logic of paio_cancel is not broken. Here are the details regarding the testing that has been carried out on the patchset: * kvm-autotest run with guest running fedora 14. The following tests were run successfully: disktest, bonnie, fsstress, blast, ffsb. * 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 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 API and remove active field. Remove thread_create routine. Threadlet: Add aio_signal_handler threadlet API Remove all instances of CONFIG_THREAD Move threadlet code to qemu-threadlets.c Threadlets: Add functionality to create private queues. Threadlets: Add documentation Makefile.objs | 3 - configure | 2 docs/async-support.txt | 141 ++++++++++++++++++++++++++++ posix-aio-compat.c | 242 ++++++++++++------------------------------------ qemu-threadlets.c | 175 +++++++++++++++++++++++++++++++++++ qemu-threadlets.h | 47 +++++++++ vl.c | 3 + 7 files changed, 430 insertions(+), 183 deletions(-) create mode 100644 docs/async-support.txt create mode 100644 qemu-threadlets.c create mode 100644 qemu-threadlets.h -- arun