From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG55k-0003Wn-Rk for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:09:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG55g-0008BJ-Jt for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:08:56 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:39565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG51g-00073R-QA for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:04:44 -0400 Received: by mail-lb0-f179.google.com with SMTP id j14so1695760lbo.24 for ; Thu, 14 Mar 2013 03:04:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87hakfiild.fsf@codemonkey.ws> References: <1363154346-14827-1-git-send-email-qemulist@gmail.com> <51405BEA.6080109@redhat.com> <87hakfiild.fsf@codemonkey.ws> From: Peter Maydell Date: Thu, 14 Mar 2013 10:04:23 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Anthony Liguori Cc: mdroth , "Michael S. Tsirkin" , Stefan Hajnoczi , qemu-devel@nongnu.org, Liu Ping Fan , Paolo Bonzini On 13 March 2013 12:34, Anthony Liguori wrote: > AioContext is necessary for the block layer because the block layer > still has synchronous I/O. I think we should aim to replace all sync > I/O in the long term with coroutine based I/O. I think coroutines are dreadful and we should really not be moving towards greater use of them. They're just really really not portable and they don't fit with the C language, and they're a constant source of problems.(For instance I have a bug I need to look into where we seem to hang using the gthread coroutine backend but not sigaltstack.) Use threads, or a genuinely asynchronous API, or a select/poll loop with callbacks, but not more coroutines please. -- PMM