From owner-freebsd-emulation@FreeBSD.ORG Sun May 25 11:55:21 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7814106564A for ; Sun, 25 May 2008 11:55:21 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 572368FC27 for ; Sun, 25 May 2008 11:55:20 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1075881fgb.35 for ; Sun, 25 May 2008 04:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=xHPBoGAhRHBx0wWxbTZz2y167v/mO5AorUjLd4HDltw=; b=oin/keBDNvkhEfk0QrkoP4iSPTgAzt/fx54halky1fUutzCc9TBdT0AIU5D4Ua+kxh4rCsMZLXJtR4Kg9mu90VSFJJuO4Mb8C34yxIbWXvVROsEfehy1+Ip9SAZ//9emNbaks9ywzF8sG+BCFo9MWcFjABmggpNzAmMiGjn6cXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=LdAU+Ig9N7y1Y2nP3g60nbHsyoBfxpKJXbZ2Xpqi9B+NAVItcjPkZFFE5IWZWH/qVkaqPM5vPYIqMsgtkNXelX/B43+MIc+N9qa5VwAGSONiFAPSszEXy/dSiu4YxsVg3bLMZOW3lPdqbul6LUq/nrI1Z5Kzk+k54/9AE7QwyOQ= Received: by 10.86.26.11 with SMTP id 11mr2071131fgz.23.1211714830460; Sun, 25 May 2008 04:27:10 -0700 (PDT) Received: from ?192.168.1.100? ( [93.80.198.38]) by mx.google.com with ESMTPS id l12sm9300412fgb.8.2008.05.25.04.27.08 (version=SSLv3 cipher=RC4-MD5); Sun, 25 May 2008 04:27:09 -0700 (PDT) Message-ID: <48394D06.2020209@gmail.com> Date: Sun, 25 May 2008 15:27:02 +0400 From: Vladimir Ermakov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080404 SeaMonkey/1.1.9 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Linux kernel library 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: Sun, 25 May 2008 11:55:21 -0000 Hello interesting project http://ixlabs.cs.pub.ro/projects/linux-kernel-library/ ==================================================== Project description The Linux kernel is an immense deposit of high quality code: over 7 million lines as of version 2.6.20. While some parts could be used in other projects, the tasks of identification, separation and maintenance of the needed chunks of code require many resources, a good understanding of the Linux architecture and high C skills. The purpose of the Linux Kernel Library project is to organize the Linux code in a library which can be used in third party projects. Example of such projects: * Linux filesystem drivers for other operating systems * schedulers for applications that need to manage some tasks * applications that would need swapping, caching or other memory management features * applications that use filesystem images ==================================================== /Vladimir Ermakov From owner-freebsd-emulation@FreeBSD.ORG Mon May 26 11:06:46 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACB0D1065689 for ; Mon, 26 May 2008 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 984788FC40 for ; Mon, 26 May 2008 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4QB6k0J064858 for ; Mon, 26 May 2008 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4QB6kRR064854 for freebsd-emulation@FreeBSD.org; Mon, 26 May 2008 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 May 2008 11:06:46 GMT Message-Id: <200805261106.m4QB6kRR064854@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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: Mon, 26 May 2008 11:06:46 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/97326 emulation [linux] file descriptor leakage in linux emulation o kern/117010 emulation [linux] linux_getdents() get something like buffer ove 3 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] [request] easier wine/w23 support a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/122318 emulation [linux] [cmake]: Segmentation fault when running Linux o ports/123960 emulation Port fix: archivers/linux-par2cmdline - better handlin o ports/123964 emulation Mk fix: bsd.linux-rpm.mk - Handling of NOPORTDOCS 12 problems total. From owner-freebsd-emulation@FreeBSD.ORG Wed May 28 14:44:21 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ED00106564A for ; Wed, 28 May 2008 14:44:21 +0000 (UTC) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id D699C8FC14 for ; Wed, 28 May 2008 14:44:20 +0000 (UTC) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id F124E2C50D19 for ; Wed, 28 May 2008 17:28:04 +0300 (EEST) Date: Wed, 28 May 2008 17:28:04 +0300 From: Ion-Mihai Tetcu To: freebsd-emulation@FreeBSD.org Message-ID: <20080528172804.60fdbf2d@it.buh.tecnik93.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: graphics/linux-png: bad plist 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: Wed, 28 May 2008 14:44:21 -0000 Hi, Bad plist (on 7-STABLE-amd64) with export FORCE_PACKAGE=yes export NOPORTDOCS=yes export NOPORTEXAMPLES=yes export NOPORTDATA=yes ======================================== ===> Building package for linux-png-1.2.8_2 Creating package /tmp/packages/All/linux-png-1.2.8_2.tbz Registering depends: linux_base-fc-4_13. Creating bzip'd tar ball in '/tmp/packages/All/linux-png-1.2.8_2.tbz' Deleting linux-png-1.2.8_2 ================================================================ === Checking filesystem state list of extra files and directories in / (not present before this port was installed but present after it was deinstalled) 15214889 4 drwxr-xr-x 2 root wheel 512 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8 15214890 156 -rw-r--r-- 1 root wheel 79441 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/CHANGES 15214891 12 -rw-r--r-- 1 root wheel 4105 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/LICENSE 15214892 28 -rw-r--r-- 1 root wheel 13988 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/README 15214893 4 -rw-r--r-- 1 root wheel 1182 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/TODO 15214894 60 -rw-r--r-- 1 root wheel 29793 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/example.c 15214895 252 -rw-r--r-- 1 root wheel 127770 May 28 12:44 compat/linux/usr/share/doc/libpng-1.2.8/libpng.txt ================================================================ build of /usr/ports/graphics/linux-png ended at Wed May 28 12:44:55 UTC 2008 Thanks for your work on making FreeBSD better, -- (__) IOnut (__) (.''/// \\\'',) ^ / \/ \/ \ ^ (_\. /. .\. /_) ============================== We do not colonize. We conquer. We rule. There is no other way for us. -- Rojan, "By Any Other Name", stardate 4657.5 From owner-freebsd-emulation@FreeBSD.ORG Thu May 29 21:49:15 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 82DDD106566C for ; Thu, 29 May 2008 21:49:15 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 28D108FC1A for ; Thu, 29 May 2008 21:49:14 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 779A4680584; Thu, 29 May 2008 23:48:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c8Lg6YQZw3Bj; Thu, 29 May 2008 23:48:30 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 07CC467FB1A; Thu, 29 May 2008 23:48:29 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m4TLmT5p080678; Thu, 29 May 2008 23:48:29 +0200 (CEST) (envelope-from rdivacky) Date: Thu, 29 May 2008 23:48:29 +0200 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20080529214829.GA79810@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: [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: Thu, 29 May 2008 21:49:15 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi, 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. The advantages are obvious - ability to have newer Fedora base system (which requires 2.6 kernel), more software running better or running at all. For some time epoll() support was considered to be the last thing needed before this switch taking place but my patch is incomplete and I don't want this to hold the switch back. (yes, I am going to finish the epoll() and commit that, but it's not a matter of days) so... I'd like to switch the 2.6 emulation on default in HEAD in a week. This will help test the Linuxulator and probably squeeze out some more bugs (the getdents comes to mind), also this is a prerequisite for Linuxulator64 hitting the tree (Dmitry, BIG thanks for doing this work!) and we can always switch back if things don't work out before 8.0 is to be branches, hence... I am asking you to express your attitude towards switching to 2.6 emulation on default in a week. Speak now or forever hold your peace... thank you! roman p.s. sorry for cross-posting, please reply on emulation@ only --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkg/JK0ACgkQLVEj6D3CBEws0wCfcnkU9dEp8gVQzC5wNqZ8RUQS 6nsAmwfSxWc76DD/CHv4h8StXJa39Vbt =GTK9 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- From owner-freebsd-emulation@FreeBSD.ORG Thu May 29 22:09:53 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 2285A1065673 for ; Thu, 29 May 2008 22:09:53 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (mx2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id DAD378FC20 for ; Thu, 29 May 2008 22:09:52 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m4TM9pjE042772; Thu, 29 May 2008 16:09:51 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m4TM9o6l019872; Thu, 29 May 2008 16:09:50 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m4TM9oa1019868; Thu, 29 May 2008 16:09:50 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18495.10669.315131.533466@gromit.timing.com> Date: Thu, 29 May 2008 16:09:49 -0600 From: John E Hein To: Roman Divacky In-Reply-To: <20080529214829.GA79810@freebsd.org> References: <20080529214829.GA79810@freebsd.org> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean 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: Thu, 29 May 2008 22:09:53 -0000 Roman Divacky wrote at 23:48 +0200 on May 29, 2008: > I am asking you to express your attitude towards switching > to 2.6 emulation on default in a week. Speak now or forever hold > your peace... I say we do it (last month). Users can always go back via sysctl if needed. That's no problem for -current users. Notes in UPDATING files would be useful, of course. From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 05:06:54 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 A39D5106568E for ; Fri, 30 May 2008 05:06:54 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 5974C8FC15 for ; Fri, 30 May 2008 05:06:54 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 9721C1CD1C; Fri, 30 May 2008 07:04:53 +0200 (CEST) Date: Fri, 30 May 2008 07:04:53 +0200 From: Ed Schouten To: emulation@freebsd.org Message-ID: <20080530050453.GX64397@hoeg.nl> References: <20080529214829.GA79810@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="72btQdUC6twB1rwh" Content-Disposition: inline In-Reply-To: <20080529214829.GA79810@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: 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 05:06:54 -0000 --72btQdUC6twB1rwh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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() 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 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-- From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 08:50:19 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 E79F51065676 for ; Fri, 30 May 2008 08:50:19 +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 887718FC13 for ; Fri, 30 May 2008 08:50:19 +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 297842E0F8; Fri, 30 May 2008 10:50:14 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 7C43910CCCB; Fri, 30 May 2008 10:50:11 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m4U8oBnR035186; Fri, 30 May 2008 10:50:11 +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 10:50:11 +0200 Message-ID: <20080530105011.18637q5e7hes9mtc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 30 May 2008 10:50:11 +0200 From: Alexander Leidinger To: John E Hein References: <20080529214829.GA79810@freebsd.org> <18495.10669.315131.533466@gromit.timing.com> In-Reply-To: <18495.10669.315131.533466@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit 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.9, required 6, BAYES_00 -15.00, 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 08:50:20 -0000 Quoting John E Hein (from Thu, 29 May 2008 16:09:49 -0600): > Roman Divacky wrote at 23:48 +0200 on May 29, 2008: > > I am asking you to express your attitude towards switching > > to 2.6 emulation on default in a week. Speak now or forever hold > > your peace... > > I say we do it (last month). Users can always go back via sysctl if > needed. That's no problem for -current users. Notes in UPDATING > files would be useful, of course. s:useful:mandatory: Bye, Alexander. -- It is undignified for a woman to play servant to a man who is not hers. -- Spock, "Amok Time", stardate 3372.7 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 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 From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 09:40:48 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D39A51065671 for ; Fri, 30 May 2008 09:40:48 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id 61D048FC1F for ; Fri, 30 May 2008 09:40:48 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.23] (helo=13.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #19) id 1K216N-0001wg-1j for freebsd-emulation@freebsd.org; Fri, 30 May 2008 11:40:47 +0200 Received: from m8b4c.m.pppool.de ([89.49.139.76]:17995 helo=peedub.jennejohn.org) by 13.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #12) id 1K216M-00029w-OM for freebsd-emulation@freebsd.org; Fri, 30 May 2008 11:40:47 +0200 Date: Fri, 30 May 2008 11:40:45 +0200 From: Gary Jennejohn To: freebsd-emulation@freebsd.org Message-ID: <20080530114045.7b3d8a6c@peedub.jennejohn.org> In-Reply-To: <20080529214829.GA79810@freebsd.org> References: <20080529214829.GA79810@freebsd.org> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.10.14; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gj@freebsd.org 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:48 -0000 On Thu, 29 May 2008 23:48:29 +0200 Roman Divacky wrote: > I am asking you to express your attitude towards switching > to 2.6 emulation on default in a week. Speak now or forever hold > your peace... > I switched a month or so ago and haven't experienced any problems. I'm all for it! --- Gary Jennejohn From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 09:51:18 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 8DE64106566B for ; Fri, 30 May 2008 09:51:18 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 4228C8FC18 for ; Fri, 30 May 2008 09:51:18 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 7433F1CC4D; Fri, 30 May 2008 11:49:11 +0200 (CEST) Date: Fri, 30 May 2008 11:49:11 +0200 From: Ed Schouten To: Alexander Leidinger Message-ID: <20080530094911.GY64397@hoeg.nl> References: <20080529214829.GA79810@freebsd.org> <20080530050453.GX64397@hoeg.nl> <20080530114038.92102g7uj7m3haqs@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dZHW955j1vPFHE0Q" Content-Disposition: inline In-Reply-To: <20080530114038.92102g7uj7m3haqs@webmail.leidinger.net> User-Agent: Mutt/1.5.18 (2008-05-17) 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:51:18 -0000 --dZHW955j1vPFHE0Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Leidinger wrote: > 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? It just calls linux_device_register_handler() to create the mapping. I'm not entirely happy with this yet, because this means our pts(4) driver needs to be recompiled to work with Linux binary compatibility. In CVS, there is already some code in place to make the mapping work for /dev/pts/XXX (see linux_stats.c), but it always returns the same device number for all pts devices. I should probably just change that code to parse the device number and base the major/minor number on that. >> 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? On i386, it works good enough to at least make sshd work. On amd64 it returns EINVAL, using the same Linux binaries. >> 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. Yes, we should. Unfortunately I don't I have the time to look into that. --=20 Ed Schouten WWW: http://80386.nl/ --dZHW955j1vPFHE0Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkg/zZcACgkQ52SDGA2eCwWgTACfZa0yHbIDjqUxkOYjOJtfgYuR zioAnipLHlezQOQ5biT3KrP8rs5F41Is =n8Uy -----END PGP SIGNATURE----- --dZHW955j1vPFHE0Q-- From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 10:05:03 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CE65106566B for ; Fri, 30 May 2008 10:05:03 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DBBD18FC14 for ; Fri, 30 May 2008 10:05:02 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K20bJ-000418-9s for freebsd-emulation@freebsd.org; Fri, 30 May 2008 09:08:41 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2008 09:08:41 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2008 09:08:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Ivan Voras Date: Fri, 30 May 2008 11:08:30 +0200 Lines: 34 Message-ID: References: <20080529214829.GA79810@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE54E0C92FB73418D60D8A1DB" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: <20080529214829.GA79810@freebsd.org> X-Enigmail-Version: 0.95.0 Sender: news 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 10:05:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE54E0C92FB73418D60D8A1DB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Roman Divacky wrote: > I am asking you to express your attitude towards switching > to 2.6 emulation on default in a week. Speak now or forever hold > your peace... Speaking purely as a user: if it won't crash the machine often, go for it= :) I'll take this opportunity to again suggest the default Linux base be CentOS (free clone of Red Hat Enterprise Linux) instead of Fedora (the "desktop" variant). --------------enigE54E0C92FB73418D60D8A1DB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIP8QOldnAQVacBcgRAgWeAKC+Jec9lbEK+AUcZ/Tm5vFi+aYqWwCePbIk 82UC1EisBd2+yj+w365HrVs= =mys1 -----END PGP SIGNATURE----- --------------enigE54E0C92FB73418D60D8A1DB-- From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 10:28:39 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F92106564A for ; Fri, 30 May 2008 10:28:39 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id B2A858FC16 for ; Fri, 30 May 2008 10:28:38 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id DB8B867F244; Fri, 30 May 2008 12:27:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I+T61tUZMvqa; Fri, 30 May 2008 12:27:53 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4E14367F106; Fri, 30 May 2008 12:27:53 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m4UARrOf014066; Fri, 30 May 2008 12:27:53 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 30 May 2008 12:27:52 +0200 From: Roman Divacky To: Ivan Voras Message-ID: <20080530102752.GA13932@freebsd.org> References: <20080529214829.GA79810@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-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 10:28:39 -0000 On Fri, May 30, 2008 at 11:08:30AM +0200, Ivan Voras wrote: > Roman Divacky wrote: > > > I am asking you to express your attitude towards switching > > to 2.6 emulation on default in a week. Speak now or forever hold > > your peace... > > Speaking purely as a user: if it won't crash the machine often, go for it :) well.. the main point of the switch is to see if it does not crash your machine often :) From owner-freebsd-emulation@FreeBSD.ORG Fri May 30 13:08:04 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FC961065675 for ; Fri, 30 May 2008 13:08:04 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (mail.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 41EED8FC18 for ; Fri, 30 May 2008 13:08:03 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m4UD83Ej042464; Fri, 30 May 2008 07:08:03 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m4UD81P0069581; Fri, 30 May 2008 07:08:01 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m4UD81Gk069578; Fri, 30 May 2008 07:08:01 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18495.64561.653123.65054@gromit.timing.com> Date: Fri, 30 May 2008 07:08:01 -0600 From: John E Hein To: Ivan Voras In-Reply-To: References: <20080529214829.GA79810@freebsd.org> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-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 13:08:04 -0000 Ivan Voras wrote at 11:08 +0200 on May 30, 2008: > I'll take this opportunity to again suggest the default Linux base be > CentOS (free clone of Red Hat Enterprise Linux) instead of Fedora (the > "desktop" variant). Before the default can change to CentOS, someone should submit/maintain the linux_base-centos flavored port to have it available for people to try as a non-default base. From owner-freebsd-emulation@FreeBSD.ORG Sat May 31 07:18:10 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 2D7B61065670 for ; Sat, 31 May 2008 07:18:10 +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 EB9CF8FC13 for ; Sat, 31 May 2008 07:18:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A56892.dip.t-dialin.net [84.165.104.146]) by redbull.bpaserver.net (Postfix) with ESMTP id 416F72E075; Sat, 31 May 2008 09:18:04 +0200 (CEST) Received: from deskjail (unknown [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id DD38310761F; Sat, 31 May 2008 09:18:00 +0200 (CEST) Date: Sat, 31 May 2008 09:17:59 +0200 From: Alexander Leidinger To: Ed Schouten Message-ID: <20080531091759.1acaa6c4@deskjail> In-Reply-To: <20080530094911.GY64397@hoeg.nl> References: <20080529214829.GA79810@freebsd.org> <20080530050453.GX64397@hoeg.nl> <20080530114038.92102g7uj7m3haqs@webmail.leidinger.net> <20080530094911.GY64397@hoeg.nl> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i686-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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.4, required 6, BAYES_00 -15.00, NO_RDNS 0.50, 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: Sat, 31 May 2008 07:18:10 -0000 Quoting Ed Schouten (Fri, 30 May 2008 11:49:11 +0200): > * Alexander Leidinger wrote: > > 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 > >>> (= 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 > > (I hadn't a close look at this) for some devices. Does your work use > > this existing infrastructure or is this something else? > > It just calls linux_device_register_handler() to create the mapping. I'm > not entirely happy with this yet, because this means our pts(4) driver > needs to be recompiled to work with Linux binary compatibility. We don't have a function in the kernel linker available which you can use to lookup the function, and if you get a good pointer back, call it? > In CVS, there is already some code in place to make the mapping work for > /dev/pts/XXX (see linux_stats.c), but it always returns the same device > number for all pts devices. I should probably just change that code to > parse the device number and base the major/minor number on that. > > >> 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 > > tells it is broken on all architectures. Did you test on a i386 system > > too? > > On i386, it works good enough to at least make sshd work. On amd64 it > returns EINVAL, using the same Linux binaries. Thanks for the data point. Bye, Alexander. -- YOU!! Give me the CUTEST, PINKEST, most charming little VICTORIAN DOLLHOUSE you can find!! An make it SNAPPY!! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137