Skip to contentSkip to conversation

Fix parameters of prctl

PATCH Applied Huang Ying 2 participants 2 messages Dec 15, 2009 KVM

lore
Share & tools
lore

Huang Ying

author
#0 lore raw

PATCH 1/1 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.

---
 qemu-kvm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-kvm.c +1 -1
@@ -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;
 }
 
Applied
#1 lore raw
Quoted 4 lines · Huang Ying

Because kenrel prctl implementation checks whether arg4 and arg5 are 0 for PR_MCE_KILL, qmeu-kvm should invoke prctl syscall as that.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function