From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2Vb-0000dm-Is for qemu-devel@nongnu.org; Tue, 18 Mar 2014 18:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQ2VP-0000oG-NI for qemu-devel@nongnu.org; Tue, 18 Mar 2014 18:29:19 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:38281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2VP-0000mP-CW for qemu-devel@nongnu.org; Tue, 18 Mar 2014 18:29:07 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Mar 2014 22:29:05 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9B4592190056 for ; Tue, 18 Mar 2014 22:28:58 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2IMSp2o50331748 for ; Tue, 18 Mar 2014 22:28:51 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2IMT2FY025814 for ; Tue, 18 Mar 2014 16:29:02 -0600 Date: Tue, 18 Mar 2014 23:28:47 +0100 From: Thomas Huth Message-ID: <20140318232847.16a1e21e@oc7435384737.ibm.com> In-Reply-To: <20140318040456.GA13112@tesla.pnq.redhat.com> References: <20140318040456.GA13112@tesla.pnq.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 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... Regards, Thomas