From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKnWx-0000eQ-Rk for qemu-devel@nongnu.org; Fri, 13 May 2011 04:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKnWw-0007Uh-KW for qemu-devel@nongnu.org; Fri, 13 May 2011 04:15:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKnWw-0007Rd-DS for qemu-devel@nongnu.org; Fri, 13 May 2011 04:15:26 -0400 Message-ID: <4DCCE936.7000803@redhat.com> Date: Fri, 13 May 2011 10:17:58 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1305194086-9832-1-git-send-email-stefanha@linux.vnet.ibm.com> <1305194086-9832-2-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/4] coroutine: introduce coroutines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Blue Swirl , Paolo Bonzini , Venkateswararao Jujjuri Am 12.05.2011 21:22, schrieb Stefan Hajnoczi: > On Thu, May 12, 2011 at 7:12 PM, Blue Swirl wrote: >> On Thu, May 12, 2011 at 12:54 PM, Stefan Hajnoczi >> wrote: >>> diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c >>> new file mode 100644 >>> index 0000000..3b14ebf >>> --- /dev/null >>> +++ b/coroutine-ucontext.c >>> @@ -0,0 +1,73 @@ >>> +/* >>> + * ucontext coroutine initialization code >>> + * >>> + * Copyright (C) 2006 Anthony Liguori >>> + * Copyright (C) 2011 Kevin Wolf >>> + * >>> + * This library is free software; you can redistribute it and/or >>> + * modify it under the terms of the GNU Lesser General Public >>> + * License as published by the Free Software Foundation; either >>> + * version 2.0 of the License, or (at your option) any later version. >>> + * >>> + * This library is distributed in the hope that it will be useful, >>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >>> + * Lesser General Public License for more details. >>> + * >>> + * You should have received a copy of the GNU Lesser General Public >>> + * License along with this library; if not, write to the Free Software >>> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA >> >> Please use the web link version. > > Will update in v3. > >>> + */ >>> + >>> +/* XXX Is there a nicer way to disable glibc's stack check for longjmp? */ >> >> What is the problem? > > Kevin? I don't remember the details of the mechanism, but with _FORTIFY_SOURCE glibc has some check in longjmp that doesn't like stack switches. If you uncomment the #undef, you should be able to reproduce the abort(). Kevin