From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 18 10:11:37 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 96DA41065673; Mon, 18 Aug 2008 10:11:37 +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 468818FC16; Mon, 18 Aug 2008 10:11:37 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55752.dip.t-dialin.net [84.165.87.82]) by redbull.bpaserver.net (Postfix) with ESMTP id 8899F2E1BC; Mon, 18 Aug 2008 12:11:30 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id D50BC144CD9; Mon, 18 Aug 2008 12:11:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1219054287; bh=Vg+4fUqhd5jWA3czSmDSODHMAk8Lfwsz5 +SjRLrNZ0o=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3M5H1i14g3GWrnDOV7bS0EFfDqjIbAwG7PZDnLPIoD6A63RZb+5VGiUlqIW5US9/L lYOhe+6Sy+Hxx4/q7kBRRM6rgQDevrkdSUO11c8+wIyo0pfqcIkmKo6lyWHrQ4N9TyS hwJxeJCmOog7vfCgz3O4/1AoQ827vsNRu+uAIOAoO0e2jRTqXEMfOrgT3MkF1kjrcKK Xd2suGW/5tGwkq6ZvROZuDfa7xfe6/jiA3nLcf+x7/C+heVOXKFc6tcGYFEZNC0q4UW jMifBp2Jfqup9dwfK/LX9eFILBPIAcAR3Vd6D5FCYsFYYG89SU0vFWReIw2oEfUa8Ey lY3ezROhA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7IABRNa071333; Mon, 18 Aug 2008 12:11:27 +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; Mon, 18 Aug 2008 12:11:27 +0200 Message-ID: <20080818121127.745322h5l2ufrxs0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 18 Aug 2008 12:11:27 +0200 From: "Alexander Leidinger" To: "Adrian Penisoara" References: <20080810072013.GA15196@dchagin.dialup.corbina.ru> <20080810115406.GR97161@deviant.kiev.zoral.com.ua> <20080810120424.GA15768@dchagin.dialup.corbina.ru> <20080810122124.GS97161@deviant.kiev.zoral.com.ua> <20080817181757.GA2940@dchagin.dialup.corbina.ru> <20080818100541.20073jcxqbtyci80@webmail.leidinger.net> <78cb3d3f0808180138o6c2e7c3bhf6f49b4de547b218@mail.gmail.com> In-Reply-To: <78cb3d3f0808180138o6c2e7c3bhf6f49b4de547b218@mail.gmail.com> 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) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 8899F2E1BC.70FD2 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, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, J_CHICKENPOX_52 0.60, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org, Chagin Dmitry Subject: Re: x86_64 linuxulator patches 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, 18 Aug 2008 10:11:37 -0000 Quoting "Adrian Penisoara" (from Mon, 18 Aug 2008 =20 10:38:02 +0200): > Hi, > > On Mon, Aug 18, 2008 at 10:05 AM, Alexander Leidinger > wrote: >>> in my opinion the best decision for amd64 looks so. >>> we use two modules. linux.ko for x86_64 and linux32.ko for ia32, >>> option COMPAT_LINUX for x86_64 and COMPAT_LINUX32 for ia32. >>> and two linux_base directories: /compat/linux for x86_64 >>> and /compat/linux32 for ia32. >>> >>> there are other opinions? >> >> I propose: >> - /compat/linux64 for 64bit stuff >> - /compat/linux32 a symlink to /compat/linux >> - /compat/linux for 32bit stuff (we can think about having) >> > > I agree with this later proposition, it's a bad thing to break the > already established purpose for /compat/linux (32bit binaries). > > Here is yet another variation: > /compat/linux64 -- 64bit > /compat/linux32 -- 32bit > /compat/linux -> linux32 -- symlink, would this break anything in > the current ports/packages ? Making linux a symlink to linux32 will not work. I made the proposal =20 the other way around on purpose. If an user does not update after the =20 changes are introduced, any new installation (without the update) will =20 mess-up the installation. If you don't have to worry about backwards =20 compatibility, it's ok (and I would prefer it), but unfortunately it =20 will create more hassle than it will help in the real world (there are =20 too much people which will not make the right thing in such a case). I also thought about workarounds, by e.g. checking if all involved =20 paths are of the correct type and refuse to work or to adjust the =20 paths if they aren't, but this will make the LINUXBASE handling very =20 complicated, more than it is worth (there's already a lot of work to =20 do to get all infrastructure for this together). > I strongly oppose having linux.ko as the 64bit version, rather there > should be linux64.ko (linux-x86_64.ko ?) and linux32.ko (linux-ia32.ko > ?) and perhaps we should make linux.ko try loading both of these > (since the user did not specify the intended platform). I like this. linux.ko as a meta module which depends upon linux32 and =20 linux64 on amd64, and depends upon linux32 on i386. This way POLA is =20 preserved, the documentation is not wrong (to enable linux emulation =20 load the linux.ko), and people which only want one can load the =20 specific one. Bye, Alexander. --=20 =09A domineering man married a mere wisp of a girl. He came back from his honeymoon a chastened man. He'd become aware of the will of the wisp. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137