Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxPkI-0004Hb-00 for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxPkF-0004GT-PP for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:28 -0400 Received: from [199.232.76.173] (port=36812 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxPkF-0004GG-EC for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35157 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 1LxPkE-0003GU-OV for qemu-devel@nongnu.org; Fri, 24 Apr 2009 14:03:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LxPkE-0002qq-9Y for qemu-devel@nongnu.org; Fri, 24 Apr 2009 18:03:26 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LxPkE-0002qm-0q for qemu-devel@nongnu.org; Fri, 24 Apr 2009 18:03:26 +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:26 +0000 Subject: [Qemu-devel] [7239] qemu: introduce qemu_init_main_loop (Marcelo Tosatti) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7239 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7239 Author: aliguori Date: 2009-04-24 18:03:25 +0000 (Fri, 24 Apr 2009) Log Message: ----------- qemu: introduce qemu_init_main_loop (Marcelo Tosatti) Hook to allow iothread initialization. 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:20 UTC (rev 7238) +++ trunk/vl.c 2009-04-24 18:03:25 UTC (rev 7239) @@ -3718,6 +3718,11 @@ } } +static int qemu_init_main_loop(void) +{ + return 0; +} + #ifdef _WIN32 static void host_main_loop_wait(int *timeout) { @@ -5145,6 +5150,10 @@ if (smp_cpus > 1) kqemu_allowed = 0; #endif + if (qemu_init_main_loop()) { + fprintf(stderr, "qemu_init_main_loop failed\n"); + exit(1); + } linux_boot = (kernel_filename != NULL); net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF;