It is funny that we have two sigbus_handler in our QEMU.(exec.c & cpus.c)Change one's name.
Signed-off-by: Peace <peac...@gmail.com)> --- cpus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index dd7ac13..2a429e5 100644 --- a/cpus.c +++ b/cpus.c @@ -583,7 +583,7 @@ static void sigbus_reraise(void) abort(); } -static void sigbus_handler(int n, struct qemu_signalfd_siginfo *siginfo, +static void default_sigbus_handler(int n, struct qemu_signalfd_siginfo *siginfo, void *ctx) { if (kvm_on_sigbus(siginfo->ssi_code, @@ -598,7 +598,7 @@ static void qemu_init_sigbus(void) memset(&action, 0, sizeof(action)); action.sa_flags = SA_SIGINFO; - action.sa_sigaction = (void (*)(int, siginfo_t*, void*))sigbus_handler; + action.sa_sigaction = (void (*)(int, siginfo_t*, void*))default_sigbus_handler; sigaction(SIGBUS, &action, NULL); prctl(PR_MCE_KILL, PR_MCE_KILL_SET, PR_MCE_KILL_EARLY, 0, 0); -- 1.7.2.5