From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDVl-0007vC-CY for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:14:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQDVd-0002f7-Il for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:14:13 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:36985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDVd-0002ey-8l for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:14:05 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Mar 2014 10:14:04 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 42D331B08074 for ; Wed, 19 Mar 2014 10:13:51 +0000 (GMT) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2JADnQD37814340 for ; Wed, 19 Mar 2014 10:13:49 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2JAE0D8006868 for ; Wed, 19 Mar 2014 06:14:00 -0400 Date: Wed, 19 Mar 2014 11:13:56 +0100 From: Thomas Huth Message-ID: <20140319111356.2c3c8d37@oc7435384737.ibm.com> In-Reply-To: <20140319100502.GF23868@stefanha-thinkpad.muc.redhat.com> References: <20140318040456.GA13112@tesla.pnq.redhat.com> <20140318232847.16a1e21e@oc7435384737.ibm.com> <20140319100502.GF23868@stefanha-thinkpad.muc.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] How to understand the coroutine context? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Le Tan , Kashyap Chamarthy On Wed, 19 Mar 2014 11:05:02 +0100 Stefan Hajnoczi wrote: > On Tue, Mar 18, 2014 at 11:28:47PM +0100, Thomas Huth wrote: > > On Tue, 18 Mar 2014 09:34:56 +0530 > > Kashyap Chamarthy wrote: > > > > > On Tue, Mar 18, 2014 at 07:56:16AM +0800, Le Tan wrote: > > > > Hi, I am diving into the source code of qemu. I see the word > > > > "coroutine" appears in so many places. I can't figure out what it > > > > means. So, please, can anyone help me, telling me the mechanism or > > > > semantic of "coroutine"? Thanks! > > > > > > This might be of help -- > > > http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.html > > > > That's a very nice introduction ... Stefan, maybe you could also add > > that to the docs directory of the QEMU repository? There does not seem > > to be a description of the QEMU coroutines there yet... > > Have you seen the documentation in include/block/coroutine.h? Yes, but that does not have the nice introduction that you've given in your blog - that's why I though it might be useful to have that information in a file in the docs directory, too. Well, it was just an idea ... if you think the API description in coroutine.h is sufficient, I am certainly fine with that. Regards, Thomas