* [Qemu-devel] forking with x86_64
@ 2011-01-12 10:17 maheen butt
2011-01-12 16:53 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: maheen butt @ 2011-01-12 10:17 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
hiwhy qemu does not provide NPTL support for x86 in user mode? is there any big hindrance behind it? I did a small experimentI make a program with fork system call and give its executable to qemu-x86_64
out put shows it does not create child. the I commented out this if block of linux-user/syscall.cif ((flags & ~(CSIGNAL | CLONE_NPTL_FLAGS2)) != 0) return -EINVAL;so that it can fork now as next line of code is thisfork_start(); ret = fork();now it started working, the child has created.if it is so simple then wat is the hurdle that original qemu code can not run fork'ed program?REGARDS
[-- Attachment #2: Type: text/html, Size: 1598 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] forking with x86_64
2011-01-12 10:17 [Qemu-devel] forking with x86_64 maheen butt
@ 2011-01-12 16:53 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2011-01-12 16:53 UTC (permalink / raw)
To: maheen butt; +Cc: qemu-devel
On Wed, Jan 12, 2011 at 17:17, maheen butt <maheen_butt26@yahoo.com> wrote:
>
> hi
> why qemu does not provide NPTL support for x86 in user mode? is there any big hindrance behind it?
IMHO, your experiment works since it simply fork(). What qemu wanna do
here is complete NPTL handling...and afaik that means clone(),
pthread_ family function and so on. Yes, fork() is based on clone(),
but it really create wholly new task, while NPTL as we speak here
means thread....
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-12 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 10:17 [Qemu-devel] forking with x86_64 maheen butt
2011-01-12 16:53 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).