Received: from [140.186.70.92] (port=54929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmYuK-0002y3-Sx for qemu-devel@nongnu.org; Mon, 07 Feb 2011 16:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmYuI-0004qo-AV for qemu-devel@nongnu.org; Mon, 07 Feb 2011 16:46:03 -0500 Received: from hall.aurel32.net ([88.191.126.93]:44782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmYuI-0004qS-2S for qemu-devel@nongnu.org; Mon, 07 Feb 2011 16:46:02 -0500 Date: Mon, 7 Feb 2011 22:45:51 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] Re: [PATCH 2/7] Enable I/O thread and VNC threads by default Message-ID: <20110207214551.GB16429@hall.aurel32.net> References: <1295902845-29807-1-git-send-email-aliguori@us.ibm.com> <1295902845-29807-3-git-send-email-aliguori@us.ibm.com> <4D3DFD20.8060004@linux.vnet.ibm.com> <20110125091741.GB30239@edde.se.axis.com> <20110125133453.GC5427@amt.cnet> <20110207101255.GA20413@amt.cnet> <20110207160350.GA26332@amt.cnet> <4D501C71.7090708@redhat.com> <4D50279B.5010102@siemens.com> <4D505DCB.9050406@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <4D505DCB.9050406@codemonkey.ws> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Anthony Liguori , Stefan Hajnoczi , Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, Anthony Liguori , Paul Brook , Paolo Bonzini , "Edgar E. Iglesias" , Arun Bharadwaj On Mon, Feb 07, 2011 at 03:02:03PM -0600, Anthony Liguori wrote: > On 02/07/2011 11:10 AM, Jan Kiszka wrote: >> On 2011-02-07 17:23, Paolo Bonzini wrote: >> >>> On 02/07/2011 05:03 PM, Marcelo Tosatti wrote: >>> >>>> Is there any other issue that prevents turning CONFIG_IOTHREAD on by >>>> default? >>>> >>> I think Windows support. >>> >>> Signal support is actually easy because we can "hack" the IPI as >>> "suspend the VCPU thread+do work in the iothread context+resume the VCPU >>> thread" (the IPI handler doesn't longjmp). >>> >>> Threading primitives support is tricky but not hard (there is lots of >>> code around, especially if you can make assumptions such as "always hold >>> the mutex while signaling a cond. variable"). >>> >> !CONFIG_IOTHREAD code is doomed to bitrot once we switch to default >> iothread mode. So if Windows support is not converted to a threading >> model with moderate differences to POSIX, it will likely bitrot a well. >> Therefore, conversion should be started rather sooner than later (by >> someone interested in that platform). >> > > As far as I'm concerned, Windows support is already deprecated as noone > has stepped up to enhance it or support for a number of years now. We > shouldn't remove existing code that supports it or refuse to take > reasonable patches but if enabling IO thread by default breaks it, so be > it. As far as I see, Blue Swirl and Stefan Weil are regularly committing fixes for win32. Stefan Weil is also providing win32 binaries on his website [1]. I wouldn't call that deprecated. [1] http://qemu.weilnetz.de/ -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net