qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabien Chouteau <chouteau@adacore.com>
To: qemu-devel@nongnu.org
Cc: hainque@adacore.com, peter.maydell@linaro.org, sw@weilnetz.de,
	blauwirbel@gmail.com, pbonzini@redhat.com, afaerber@suse.de
Subject: [Qemu-devel] [PATCH 3/3] Release SMP restriction on Windows
Date: Tue,  9 Apr 2013 18:06:55 +0200	[thread overview]
Message-ID: <1365523615-5177-4-git-send-email-chouteau@adacore.com> (raw)
In-Reply-To: <1365523615-5177-1-git-send-email-chouteau@adacore.com>

The previous patches make QEMU SMP safe on Windows, we can now release
the restriction.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
---
 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.9.5

  parent reply	other threads:[~2013-04-09 16:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 16:06 [Qemu-devel] [PATCH 0/3] Release SMP restriction on Windows host Fabien Chouteau
2013-04-09 16:06 ` [Qemu-devel] [PATCH 1/3] Check effective suspension of TCG thread Fabien Chouteau
2013-04-09 16:06 ` [Qemu-devel] [PATCH 2/3] Ensure good ordering of memory instruction in cpu_exec Fabien Chouteau
2013-04-09 16:06 ` Fabien Chouteau [this message]
2013-04-09 16:16 ` [Qemu-devel] [PATCH 0/3] Release SMP restriction on Windows host Paolo Bonzini
2013-04-11 18:57   ` Stefan Weil
2013-04-12  6:40     ` Paolo Bonzini
2013-04-12  8:20       ` Olivier Hainque

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1365523615-5177-4-git-send-email-chouteau@adacore.com \
    --to=chouteau@adacore.com \
    --cc=afaerber@suse.de \
    --cc=blauwirbel@gmail.com \
    --cc=hainque@adacore.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).