* [PATCH] Fix parameters of prctl
@ 2009-12-15 8:48 Huang Ying
2009-12-15 9:06 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Huang Ying @ 2009-12-15 8:48 UTC (permalink / raw)
To: Avi Kivity; +Cc: Andi Kleen, kvm@vger.kernel.org, Max Asbock
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>
---
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix parameters of prctl
2009-12-15 8:48 [PATCH] Fix parameters of prctl Huang Ying
@ 2009-12-15 9:06 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-12-15 9:06 UTC (permalink / raw)
To: Huang Ying; +Cc: Andi Kleen, kvm@vger.kernel.org, Max Asbock
On 12/15/2009 10:48 AM, Huang Ying wrote:
> 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.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-15 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 8:48 [PATCH] Fix parameters of prctl Huang Ying
2009-12-15 9:06 ` Avi Kivity
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.