From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDNK-0000Hw-F0 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:05:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQDNE-00008r-BU for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:05:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDNE-00008f-4L for qemu-devel@nongnu.org; Wed, 19 Mar 2014 06:05:24 -0400 Date: Wed, 19 Mar 2014 11:05:02 +0100 From: Stefan Hajnoczi Message-ID: <20140319100502.GF23868@stefanha-thinkpad.muc.redhat.com> References: <20140318040456.GA13112@tesla.pnq.redhat.com> <20140318232847.16a1e21e@oc7435384737.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140318232847.16a1e21e@oc7435384737.ibm.com> Subject: Re: [Qemu-devel] How to understand the coroutine context? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, Le Tan , Kashyap Chamarthy 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? Stefan