From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQESu-0001WG-Ju for qemu-devel@nongnu.org; Wed, 19 Mar 2014 07:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQESp-0005Eg-UQ for qemu-devel@nongnu.org; Wed, 19 Mar 2014 07:15:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQESp-0005Ea-L4 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 07:15:15 -0400 Date: Wed, 19 Mar 2014 12:15:05 +0100 From: Stefan Hajnoczi Message-ID: <20140319111505.GB27288@stefanha-thinkpad.muc.redhat.com> References: <20140318040456.GA13112@tesla.pnq.redhat.com> <20140318232847.16a1e21e@oc7435384737.ibm.com> <20140319100502.GF23868@stefanha-thinkpad.muc.redhat.com> <20140319111356.2c3c8d37@oc7435384737.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140319111356.2c3c8d37@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 Wed, Mar 19, 2014 at 11:13:56AM +0100, Thomas Huth wrote: > 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. I will expand the documentation in include/block/coroutine.h. Stefan