From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Runp1-0005kR-SL for qemu-devel@nongnu.org; Tue, 07 Feb 2012 11:23:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Runoy-0006WM-IT for qemu-devel@nongnu.org; Tue, 07 Feb 2012 11:23:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Runoy-0006W9-Bw for qemu-devel@nongnu.org; Tue, 07 Feb 2012 11:23:08 -0500 Message-ID: <4F314FE5.1040400@redhat.com> Date: Tue, 07 Feb 2012 17:23:01 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4F22B71A.3020805@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Coroutines and ucontext List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Barcelo Cc: Stefan Hajnoczi , qemu-devel On 02/07/2012 05:06 PM, Alex Barcelo wrote: > Yes, I agree. But makecontext and swapcontext are not OK for my > project (mainly because makecontext and swapcontext are not supported > by qemu under PPC) so I was looking for alternatives. My best shot at > the moment is using sigaltstack, if it works I will post a patch for > coroutines using sigaltstack, which is also quite portable (GNU > Portable Thread can use both, so I was trying to copy its > functionality). If you get stuck you can use the coroutine-fix branch at git://github.com/bonzini/qemu.git Paolo