summaryrefslogtreecommitdiff
path: root/qemu-kvm.c
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-12-15 16:48:17 +0800
committerAvi Kivity <avi@redhat.com>2009-12-15 11:06:35 +0200
commit08fd26ba6ba34b718a4478bc025c1a584c6a9267 (patch)
tree862b216a871621f792197b593a77ff0eb7844e54 /qemu-kvm.c
parenta48c6bf5a3d7723650fd7c1c3741d352672f48df (diff)
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 <masbock@linux.vnet.ibm.com> Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'qemu-kvm.c')
-rw-r--r--qemu-kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 44e8b75bd..599c3d605 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;
}