From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
"Shergill, Gurinder" <gurinder.shergill@hp.com>,
"Vinod, Chegu" <chegu_vinod@hp.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/2] coroutine: dataplane support
Date: Thu, 23 May 2013 13:58:45 +0200 [thread overview]
Message-ID: <20130523115845.GH9093@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1368798686-25213-1-git-send-email-stefanha@redhat.com>
On Fri, May 17, 2013 at 03:51:24PM +0200, Stefan Hajnoczi wrote:
> There is ongoing work to enable multiple event loop threads. This will allow
> QEMU itself to take advantage of SMP and reduce Big QEMU Lock (BQL) contention.
> This series is one step in that effort.
>
> These patches make coroutines safe in a multi-event loop/multi-threaded world.
> I have successfully tested them running qcow2 in a dataplane thread (further
> patches are required which I'll be sending soon).
>
> Patch 1 protects the global coroutine freelist with a lock :).
>
> Patch 2 drops the CoQueue dependency on AioContext. This allows CoMutex and
> CoRwlock to operate in a dataplane thread whereas previously we always
> scheduled coroutines in the QEMU iothread.
>
> Stefan Hajnoczi (2):
> coroutine: protect global pool with a mutex
> coroutine: stop using AioContext in CoQueue
>
> include/block/coroutine_int.h | 4 ++++
> qemu-coroutine-lock.c | 56 ++++++++++++++++---------------------------
> qemu-coroutine.c | 23 ++++++++++++++++--
> trace-events | 2 +-
> 4 files changed, 47 insertions(+), 38 deletions(-)
>
> --
> 1.8.1.4
>
>
Applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
prev parent reply other threads:[~2013-05-23 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 13:51 [Qemu-devel] [PATCH 0/2] coroutine: dataplane support Stefan Hajnoczi
2013-05-17 13:51 ` [Qemu-devel] [PATCH 1/2] coroutine: protect global pool with a mutex Stefan Hajnoczi
2013-05-17 13:51 ` [Qemu-devel] [PATCH 2/2] coroutine: stop using AioContext in CoQueue Stefan Hajnoczi
2013-05-17 15:02 ` [Qemu-devel] [PATCH 0/2] coroutine: dataplane support Kevin Wolf
2013-05-17 15:08 ` Peter Maydell
2013-05-21 8:15 ` Stefan Hajnoczi
2013-05-23 11:58 ` Stefan Hajnoczi [this message]
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=20130523115845.GH9093@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=chegu_vinod@hp.com \
--cc=gurinder.shergill@hp.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).