From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHuuM-0005kL-HD for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:40:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHuuK-0003ad-Sj for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:40:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHuuK-0003aN-KV for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:40:44 -0400 Message-ID: <514841E1.90606@redhat.com> Date: Tue, 19 Mar 2013 11:45:53 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1363154346-14827-1-git-send-email-qemulist@gmail.com> <51405BEA.6080109@redhat.com> <87hakfiild.fsf@codemonkey.ws> <87r4jbn3d1.fsf@blackfin.pond.sub.org> <51483F41.5000800@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: mdroth , "Michael S. Tsirkin" , Stefan Hajnoczi , qemu-devel@nongnu.org, Markus Armbruster , Anthony Liguori , Liu Ping Fan Il 19/03/2013 11:38, Peter Maydell ha scritto: > On 19 March 2013 10:34, Paolo Bonzini wrote: >> Il 19/03/2013 11:12, Peter Maydell ha scritto: >>> Threads are supported by the language runtime provided on all >>> the systems we support, which is why they are reasonably usable. >>> When you've persuaded glibc, MacOSX libc and Windows to implement >>> coroutines please come back and let me know :-) >> >> Windows supports them (it calls them fibers) and glibc does on many >> architectures (all but ARM, basically). > > If you mean ucontext, I'm not sure I'd call that coroutine > support at the library level (and we did implement it on > ARM glibc). Yes, I mean ucontext, more precisely makecontext/setcontext. Portably creating a new stack is really the crux of coroutine support. Paolo