Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2008 07:04:53 +0200
From:      Ed Schouten <ed@80386.nl>
To:        emulation@freebsd.org
Subject:   Re: [RFC]: switch to 2.6 linux emulation on default
Message-ID:  <20080530050453.GX64397@hoeg.nl>
In-Reply-To: <20080529214829.GA79810@freebsd.org>
References:  <20080529214829.GA79810@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--72btQdUC6twB1rwh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Roman,

* Roman Divacky <rdivacky@freebsd.org> 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()
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
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).

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--72btQdUC6twB1rwh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkg/ivUACgkQ52SDGA2eCwVJSQCfcBVZu9v3W81eGgydlVAJlt7L
iJUAnj3aKuUWv/DsIdgXE+NFfezN76bo
=Dc6D
-----END PGP SIGNATURE-----

--72btQdUC6twB1rwh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080530050453.GX64397>