From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmTsJ-0000qf-R8 for qemu-devel@nongnu.org; Mon, 07 Feb 2011 11:23:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmTsI-0001MP-SF for qemu-devel@nongnu.org; Mon, 07 Feb 2011 11:23:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmTsI-0001M0-LS for qemu-devel@nongnu.org; Mon, 07 Feb 2011 11:23:38 -0500 Message-ID: <4D501C71.7090708@redhat.com> Date: Mon, 07 Feb 2011 17:23:13 +0100 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 2/7] Enable I/O thread and VNC threads by default 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> In-Reply-To: <20110207160350.GA26332@amt.cnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Anthony Liguori , Paul Brook , Arun Bharadwaj , "Edgar E. Iglesias" 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"). Paolo