Received: from [140.186.70.92] (port=39566 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pcxm9-0005xb-7F for qemu-devel@nongnu.org; Wed, 12 Jan 2011 05:17:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pcxm8-00046Q-5q for qemu-devel@nongnu.org; Wed, 12 Jan 2011 05:17:57 -0500 Received: from web63206.mail.re1.yahoo.com ([69.147.97.16]:39218) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pcxm8-00043m-1p for qemu-devel@nongnu.org; Wed, 12 Jan 2011 05:17:56 -0500 Message-ID: <326252.57002.qm@web63206.mail.re1.yahoo.com> Date: Wed, 12 Jan 2011 02:17:53 -0800 (PST) From: maheen butt MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-419538579-1294827474=:57002" Subject: [Qemu-devel] forking with x86_64 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-419538579-1294827474=:57002 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable hiwhy qemu does not provide NPTL support for x86 in user mode? is there any= big=A0hindrance behind it?=A0I 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 o= f linux-user/syscall.cif ((flags & ~(CSIGNAL | CLONE_NPTL_FLAGS2)) !=3D 0)= =A0=A0 =A0 =A0 =A0 =A0 =A0return -EINVAL;so that it can fork now as next li= ne of code is thisfork_start();=A0ret =3D fork();now it started working, th= e child has created.if it is so simple then wat is the=A0hurdle that origin= al qemu code can not run fork'ed program?REGARDS=0A=0A=0A --0-419538579-1294827474=:57002 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

hi
why qemu does not provide NPTL support for x86 = in user mode? is there any big hindrance behind it?
 I did a small experiment=
I make a pr= ogram 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.c
if ((flags &a= mp; ~(CSIGNAL | CLONE_NPTL_FLAGS2)) !=3D 0)
     &= nbsp;      return -EINVAL;
so that it can fork now= as next line of code is this
fork_start();
 = ret =3D fork();
now it started working, the child has creat= ed.
if it is so simple then wat is the hurdle that original = qemu code can not run fork'ed program?
REGARDS

=0A=0A=0A=0A=0A=0A=0A=0A --0-419538579-1294827474=:57002--