From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: kwolf@redhat.com, pbonzini@redhat.com, Peter Lieven <pl@kamp.de>,
qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] WIP: add GCoroutine support
Date: Thu, 15 Jan 2015 15:08:56 +0000 [thread overview]
Message-ID: <20150115150856.GC4005@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1420823990-31461-1-git-send-email-marcandre.lureau@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]
On Fri, Jan 09, 2015 at 06:19:50PM +0100, Marc-André Lureau wrote:
> Learn to use the GCoroutine library instead of qemu own coroutine
> implementation.
>
> GCoroutine is hosted on github:
> https://github.com/elmarco/gcoroutine
>
> This allows to share the same coroutine implementation between various
> projects (gtk-vnc and spice-gtk). It is related to the effort to push
> coroutine support in GLib. See also:
> https://bugzilla.gnome.org/show_bug.cgi?id=719362
>
> Notes:
> - there are no GCoroutine releases, the API isn't frozen
> - this patch hasn't been thoroughly tested
> - GCoroutine doesn't implement pools yet
> - GCoroutine is missing sigaltstack based coroutines
> - spice-gtk and gtk-vnc patches are being worked on
The GCoroutine API has a very direct mapping to QEMU's coroutine
interface:
https://github.com/elmarco/gcoroutine/blob/master/src/gcoroutine.h
I like that you added gpointer arguments and return values to
enter/yield. When writing the QEMU coroutine interface I dropped them
because I felt we wouldn't need them, but they are appropriate in a
general-purpose coroutine library.
Kevin Lieven and Peter Lieven are currently measuring and improving
coroutine performance in the QEMU block layer. I guess this will result
in code changes to QEMU's coroutines implementation over the next weeks.
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-01-15 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 17:19 [Qemu-devel] [PATCH] WIP: add GCoroutine support Marc-André Lureau
2015-01-09 17:32 ` Peter Maydell
2015-01-15 14:54 ` Stefan Hajnoczi
2015-01-15 15:08 ` Stefan Hajnoczi [this message]
2015-01-15 15:54 ` Kevin Wolf
2015-01-22 1:46 ` Marc-André Lureau
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=20150115150856.GC4005@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--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).