From patchwork Tue Dec 15 08:48:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 67557 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBF8mMN1020279 for ; Tue, 15 Dec 2009 08:48:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758845AbZLOIsU (ORCPT ); Tue, 15 Dec 2009 03:48:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756365AbZLOIsU (ORCPT ); Tue, 15 Dec 2009 03:48:20 -0500 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 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 15 Dec 2009 00:43:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,399,1257148800"; d="scan'208";a="523189446" Received: from yhuang-dev.sh.intel.com (HELO [10.239.13.44]) ([10.239.13.44]) by fmsmga002.fm.intel.com with ESMTP; 15 Dec 2009 00:48:03 -0800 Subject: [PATCH] Fix parameters of prctl From: Huang Ying To: Avi Kivity Cc: Andi Kleen , "kvm@vger.kernel.org" , Max Asbock Date: Tue, 15 Dec 2009 16:48:17 +0800 Message-ID: <1260866897.12561.1167.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --- 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; }