[RFC]: switch to 2.6 linux emulation on default

Ed Schouten ed at 80386.nl
Fri May 30 05:06:54 UTC 2008


Hello Roman,

* Roman Divacky <rdivacky at freebsd.org> wrote:
> FreeBSD 7.0 contains support for running emulation of Linux 2.6
> (= 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).

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20080530/ae39fcde/attachment.pgp


More information about the freebsd-emulation mailing list