From 08fd26ba6ba34b718a4478bc025c1a584c6a9267 Mon Sep 17 00:00:00 2001 From: Huang Ying Date: Tue, 15 Dec 2009 16:48:17 +0800 Subject: [PATCH] Fix parameters of prctl Because kenrel prctl implementation checks whether arg4 and arg5 are 0 for PR_MCE_KILL, qmeu-kvm should invoke prctl syscall as that. Reported-by: Max Asbock Signed-off-by: Huang Ying Signed-off-by: Avi Kivity --- qemu-kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 44e8b75bdd..599c3d6051 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1984,7 +1984,7 @@ int kvm_init_ap(void) action.sa_flags = SA_SIGINFO; action.sa_sigaction = (void (*)(int, siginfo_t*, void*))sigbus_handler; sigaction(SIGBUS, &action, NULL); - prctl(PR_MCE_KILL, 1, 1); + prctl(PR_MCE_KILL, 1, 1, 0, 0); return 0; } -- 2.11.4.GIT