[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] Enable sigbus_reraise for Solaris
From: |
Lee Essen |
Subject: |
[Qemu-devel] [PATCH 2/4] Enable sigbus_reraise for Solaris |
Date: |
Sat, 24 Mar 2012 16:26:28 +0000 |
sigbus_reraise is used by the kvm_wait_io_event function and is
needed on both Linux and Solaris. This patch adds CONFIG_SOLARIS
to the current CONFIG_LINUX only ifdef.
Signed-off-by: Lee Essen <address@hidden>
---
cpus.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cpus.c b/cpus.c
index 25ba621..6550f22 100644
--- a/cpus.c
+++ b/cpus.c
@@ -455,7 +455,7 @@ static void cpu_signal(int sig)
exit_request = 1;
}
-#ifdef CONFIG_LINUX
+#if defined(CONFIG_LINUX) || defined(CONFIG_SOLARIS)
static void sigbus_reraise(void)
{
sigset_t set;
@@ -491,7 +491,9 @@ static void qemu_init_sigbus(void)
action.sa_sigaction = (void (*)(int, siginfo_t*, void*))sigbus_handler;
sigaction(SIGBUS, &action, NULL);
+#if defined(CONFIG_LINUX)
prctl(PR_MCE_KILL, PR_MCE_KILL_SET, PR_MCE_KILL_EARLY, 0, 0);
+#endif
}
static void qemu_kvm_eat_signals(CPUArchState *env)
--
1.7.6.3
[Qemu-devel] [PATCH 3/4] Enable qemu-timer dynticks for Solaris, Lee Essen, 2012/03/24