From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 09:40:46 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 503DD1065685 for ; Fri, 30 May 2008 09:40:46 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id EE7648FC16 for ; Fri, 30 May 2008 09:40:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5751E.dip.t-dialin.net [84.165.117.30]) by redbull.bpaserver.net (Postfix) with ESMTP id 8A2B92E2D6; Fri, 30 May 2008 11:40:41 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id C422110E06B; Fri, 30 May 2008 11:40:38 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m4U9ecnl043538; Fri, 30 May 2008 11:40:38 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 30 May 2008 11:40:38 +0200 Message-ID: <20080530114038.92102g7uj7m3haqs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 30 May 2008 11:40:38 +0200 From: Alexander Leidinger To: Ed Schouten References: <20080529214829.GA79810@freebsd.org> <20080530050453.GX64397@hoeg.nl> In-Reply-To: <20080530050453.GX64397@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.3, required 6, BAYES_00 -15.00, J_CHICKENPOX_33 0.60, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: [RFC]: switch to 2.6 linux emulation on default X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 09:40:46 -0000 Quoting Ed Schouten (from Fri, 30 May 2008 07:04:53 +0200): > Hello Roman, > > * Roman Divacky wrote: >> FreeBSD 7.0 contains support for running emulation of Linux 2.6 >> (=3D NPTL, futexes, TLS basically) and I'd like to switch this >> on default in HEAD to see if we can ship 8.0 with this emulation >> running on default. > > Speaking about Linux emulation: a couple of days ago I added Linux > support to my TTY code in the mpsafetty branch. This means that it can > handle the things done in posix_openpt() and ptsname(). > > Because Linux wants the minor number to be within a certain region, the > PTY driver creates a linux_device_handler for each device. ptsname() There's already something like a device handler or wrapper or whatever =20 (I hadn't a close look at this) for some devices. Does your work use =20 this existing infrastructure or is this something else? > seems to do an fstat() on the controller descriptor, followed by looping > on the files in /dev and /dev/pts, to find the matching device number. > > Unfortunately sendmsg() seems broken on amd64 with COMPAT_LINUX32. This The LTP test (http://wiki.freebsd.org/linux-kernel/ltp) for sendmsg =20 tells it is broken on all architectures. Did you test on a i386 system =20 too? > means that SSH'ing to a Linux jail only works on i386, or on amd64 when > logging in as root (in that case sshd seems to be taking a shortcut, not > causing sendmsg() to be called). That's not nice, this should work even for normal users. I think we =20 should raise the priority for the sendmsg part. Bye, Alexander. --=20 Hawkeye's Conclusion: =09It's not easy to play the clown =09when you've got to run the whole circus. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137