qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gautham R Shenoy <ego@in.ibm.com>
To: Qemu-development List <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [RFC/ PATCH 0/2] qemu: Asynchronous task offloading framework.
Date: Mon, 10 May 2010 11:45:44 +0530	[thread overview]
Message-ID: <20100510061439.6600.3818.stgit@localhost.localdomain> (raw)

Hi,

This patch series is strictly RFC only.

It implements a generic asynchrnous task offloading threading framework
based on the threading model used in the AIO subsystem.

Currently within QEMU, AIO subsystem is the only one which creates a bunch of
asynchronous threads to execute any blocking operations so that the vcpu threads
and the IO thread can go back to servicing any other guest requests.

We would want to make use of this offloading model in case of virtio-9p where the
asynchronous threads handle the POSIX operations and transfer the control to the
IO thread which, depending on current-state in the state-machine, either offloads
more work to be handled by the asynnchronous thread pool or sends the results of
the operation to the guest.

For this purpose, we need a generic task-offloading infrastructure, and this
patch series implements just that.

The patch series passed 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-work.c       |  149 ++++++++++++++++++++++++++++++++++++++++++++++++++
 async-work.h       |   85 ++++++++++++++++++++++++++++
 posix-aio-compat.c |  156 ++++++++++------------------------------------------
 4 files changed, 266 insertions(+), 126 deletions(-)
 create mode 100644 async-work.c
 create mode 100644 async-work.h

-- 
Thanks and Regards
gautham.

             reply	other threads:[~2010-05-10  6:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10  6:15 Gautham R Shenoy [this message]
2010-05-10  6:15 ` [Qemu-devel] [RFC/ PATCH 1/2] qemu: Create a generic asynchronous threading framework to offload tasks Gautham R Shenoy
2010-05-10  6:15 ` [Qemu-devel] [RFC/ PATCH 2/2] qemu: Convert paio code to use the generic threading infrastructure Gautham R Shenoy
2010-05-13  5:52   ` Venkateswararao Jujjuri (JV)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100510061439.6600.3818.stgit@localhost.localdomain \
    --to=ego@in.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).