summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongkyoon Lee <yeongkyoon.lee@samsung.com>2012-03-23 21:12:33 +0900
committerYeongkyoon Lee <yeongkyoon.lee@samsung.com>2012-03-23 21:12:33 +0900
commit02041640b87c8ffc55dbb2f7ef6bd7222868bd43 (patch)
treefe5dbb749c8ef0368e61efc059272e343d75f48e
parent45c58ed42077bab964182825b73ba85b02eda267 (diff)
downloadqemu-02041640b87c8ffc55dbb2f7ef6bd7222868bd43.tar.gz
qemu-02041640b87c8ffc55dbb2f7ef6bd7222868bd43.tar.bz2
qemu-02041640b87c8ffc55dbb2f7ef6bd7222868bd43.zip
[Title] Remove core affinity setting for Windows
[Type] Enhancement [Module] Emulator [Priority] Major [Jira#] [Redmine#] [Problem] Poor performance on Windows platform [Cause] All threads in QEMU process run on dedicated CPU core [Solution] Remove core affinity setting [TestCase] Booting, CoreMark
-rw-r--r--os-win32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/os-win32.c b/os-win32.c
index 355aab2262..79705150af 100644
--- a/os-win32.c
+++ b/os-win32.c
@@ -54,6 +54,12 @@ static BOOL WINAPI qemu_ctrl_handler(DWORD type)
return TRUE;
}
+#ifdef CONFIG_MARU
+void os_setup_early_signal_handling(void)
+{
+ SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);
+}
+#else
void os_setup_early_signal_handling(void)
{
/* Note: cpu_interrupt() is currently not SMP safe, so we force
@@ -76,6 +82,7 @@ void os_setup_early_signal_handling(void)
}
}
}
+#endif /* CONFIG_MARU */
/* Look for support files in the same directory as the executable. */
char *os_find_datadir(const char *argv0)