aboutsummaryrefslogtreecommitdiff
path: root/os-win32.c
diff options
context:
space:
mode:
authorFabien Chouteau <chouteau@adacore.com>2013-04-09 18:06:55 +0200
committerStefan Weil <sw@weilnetz.de>2013-04-12 18:27:16 +0200
commit1046127d1fcc69359b3f5a44de08e6c5b16c90bc (patch)
treea0394009b8a6c614ee119f5402970a9d90d4e1fa /os-win32.c
parentec9bd89fa48147e1d16e078217513c1235f9132a (diff)
Release SMP restriction on Windows
The previous patches make QEMU SMP safe on Windows, we can now release the restriction. Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'os-win32.c')
-rw-r--r--os-win32.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/os-win32.c b/os-win32.c
index 9673a81c7d..c7f6b5c6b0 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. */