From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlKJM-0000nz-8k for qemu-devel@nongnu.org; Tue, 26 Nov 2013 10:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlKJH-0003zz-B2 for qemu-devel@nongnu.org; Tue, 26 Nov 2013 10:12:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlKJH-0003zu-39 for qemu-devel@nongnu.org; Tue, 26 Nov 2013 10:12:19 -0500 Message-ID: <5294BA4D.7000709@redhat.com> Date: Tue, 26 Nov 2013 16:12:13 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] WIP coroutine support in GLib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= Cc: Kevin Wolf , qemu-devel@nongnu.org, stefanha@redhat.com Il 26/11/2013 16:06, Marc-Andr=E9 Lureau ha scritto: > Hi there, >=20 > At least 3 glib projects share a similar coroutine implementation > (gtk-vnc, spice-gtk and qemu). So I decided to propose adding > coroutine support in GLib. I made some changes regarding the API to be > slightly more generic. I invite you to review and participate to the > RFC bug https://bugzilla.gnome.org/show_bug.cgi?id=3D719362. >=20 > If the proposal isn't refused, I'll keep working on it as it's > incomplete at this point and will provide a qemu patch as a proof of > concept. Note that makecontext does not work on at least ARM (and I think some BSDs too), hence the sigaltstack-based implementation that QEMU has. Unfortunately, I don't think glib can "steal" a signal from the application like QEMU does. Paolo