From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxPke-0004Zn-4G for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxPkd-0004ZP-Jp for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:51 -0400 Received: from [199.232.76.173] (port=36838 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxPkd-0004ZC-BI for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:51 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35168 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LxPkc-0003No-PL for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:50 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LxPkc-0002xm-9S for qemu-devel@nongnu.org; Fri, 24 Apr 2009 18:03:50 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LxPkc-0002xZ-1s for qemu-devel@nongnu.org; Fri, 24 Apr 2009 18:03:50 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 24 Apr 2009 18:03:50 +0000 Subject: [Qemu-devel] [7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatti) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7244 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7244 Author: aliguori Date: 2009-04-24 18:03:49 +0000 (Fri, 24 Apr 2009) Log Message: ----------- qemu: introduce lock/unlock_iothread (Marcelo Tosatti) Hook to allow iothread to drop the global mutex. Signed-off-by: Marcelo Tosatti Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2009-04-24 18:03:45 UTC (rev 7243) +++ trunk/vl.c 2009-04-24 18:03:49 UTC (rev 7244) @@ -3750,6 +3750,9 @@ return; } +#define qemu_mutex_lock_iothread() do { } while (0) +#define qemu_mutex_unlock_iothread() do { } while (0) + #ifdef _WIN32 static void host_main_loop_wait(int *timeout) { @@ -3842,7 +3845,9 @@ slirp_select_fill(&nfds, &rfds, &wfds, &xfds); } #endif + qemu_mutex_unlock_iothread(); ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv); + qemu_mutex_lock_iothread(); if (ret > 0) { IOHandlerRecord **pioh;