Received: from eggs.gnu.org ([208.118.235.92]:41602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgwN-0006ja-RX for qemu-devel@nongnu.org; Fri, 12 Apr 2013 12:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQgwK-0007aw-Ui for qemu-devel@nongnu.org; Fri, 12 Apr 2013 12:35:07 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:50195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgwK-0007Yh-Oy for qemu-devel@nongnu.org; Fri, 12 Apr 2013 12:35:04 -0400 From: Stefan Weil Date: Fri, 12 Apr 2013 18:34:45 +0200 Message-Id: <1365784486-617-4-git-send-email-sw@weilnetz.de> In-Reply-To: <1365784486-617-1-git-send-email-sw@weilnetz.de> References: <1365784486-617-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 3/4] Release SMP restriction on Windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org, Fabien Chouteau From: Fabien Chouteau The previous patches make QEMU SMP safe on Windows, we can now release the restriction. Signed-off-by: Fabien Chouteau Reviewed-by: Paolo Bonzini Signed-off-by: Stefan Weil --- os-win32.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/os-win32.c b/os-win32.c index 9673a81..c7f6b5c 100644 --- a/os-win32.c +++ b/os-win32.c @@ -69,25 +69,7 @@ static BOOL WINAPI qemu_ctrl_handler(DWORD type) void os_setup_early_signal_handling(void) { - /* Note: cpu_interrupt() is currently not SMP safe, so we force - QEMU to run on a single CPU */ - HANDLE h; - DWORD_PTR mask, smask; - int i; - SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE); - - h = GetCurrentProcess(); - if (GetProcessAffinityMask(h, &mask, &smask)) { - for(i = 0; i < 32; i++) { - if (mask & (1 << i)) - break; - } - if (i != 32) { - mask = 1 << i; - SetProcessAffinityMask(h, mask); - } - } } /* Look for support files in the same directory as the executable. */ -- 1.7.10.4