From: Huang Ying Subject: [PATCH] Fix parameters of prctl Date: Tue, 15 Dec 2009 16:48:17 +0800 Message-ID: <1260866897.12561.1167.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Andi Kleen , "kvm@vger.kernel.org" , Max Asbock To: Avi Kivity Return-path: Received: from mga11.intel.com ([192.55.52.93]:38372 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753517AbZLOIsT (ORCPT ); Tue, 15 Dec 2009 03:48:19 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- qemu-kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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; }