From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 10 12:21:29 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 352D3106564A; Sun, 10 Aug 2008 12:21:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id C545F8FC12; Sun, 10 Aug 2008 12:21:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7ACLO0q040195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Aug 2008 15:21:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7ACLOn8010492; Sun, 10 Aug 2008 15:21:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7ACLOAK010491; Sun, 10 Aug 2008 15:21:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 10 Aug 2008 15:21:24 +0300 From: Kostik Belousov To: Chagin Dmitry Message-ID: <20080810122124.GS97161@deviant.kiev.zoral.com.ua> References: <20080810072013.GA15196@dchagin.dialup.corbina.ru> <20080810115406.GR97161@deviant.kiev.zoral.com.ua> <20080810120424.GA15768@dchagin.dialup.corbina.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QLVPfMX7UDLv9S3y" Content-Disposition: inline In-Reply-To: <20080810120424.GA15768@dchagin.dialup.corbina.ru> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, NORMAL_HTTP_TO_IP autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-emulation@freebsd.org 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: Sun, 10 Aug 2008 12:21:29 -0000 --QLVPfMX7UDLv9S3y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 10, 2008 at 04:04:24PM +0400, Chagin Dmitry wrote: > On Sun, Aug 10, 2008 at 02:54:06PM +0300, Kostik Belousov wrote: > > On Sun, Aug 10, 2008 at 11:20:13AM +0400, Chagin Dmitry wrote: > > > Hi, as promised, I place x86_64 linuxulator patches. > > >=20 > > > here the basic patch: > > > http://78.107.232.239/linuxulator64-current.patch > > >=20 > > > here recvmsg && sendmsg patch (not tested with really applications): > > > http://78.107.232.239/send-recv-msg.patch > > >=20 > > > here master repository: > > > git://78.107.232.239/linuxulator > > >=20 > > > and ports used for testing (and only for testing): > > > git://78.107.232.239/linux_base-f8 > > > git://78.107.232.239/linux_devel-f8 > > > git://78.107.232.239/linux_kdump-1.6 > > >=20 > > > by default on amd64 builds i386 linuxulator, for build x86_64 use > > > cd sys/modules/linux > > > make -D COMPAT_LINUX64 > > >=20 > > > for correct recognition of what linuxulator version is used > > > added new sysctl compat.linux.platform > > > for example use in ports Makefile's: > > >=20 > > > LINUX_PLATFORM!=3D /sbin/sysctl -n compat.linux.platform 2>/de= v/null > > >=20 > > > .if ${LINUX_PLATFORM}x =3D=3D "x" > > > IGNORE=3D linuxulator is not (kld)loaded > > > .elif ${LINUX_PLATFORM} =3D=3D "i386" > > > LINUX_RPM_ARCH=3D i386 > > > .elif ${LINUX_PLATFORM} =3D=3D "x86_64" > > > LINUX_RPM_ARCH=3D x86_64 > > > SFX=3D 64 > > > .else > > > IGNORE=3D ${LINUX_PLATFORM} is not supported > > > .endif > > >=20 > > > I shal glad to remarks, proposals and results of testing. > > > thnx > >=20 > > Reading your email, I got an impression that i386/linux and x86_64/linux > > ABI emulators are mutually exclusive. Is this right ? I think it would > > be most useful to be able to have them both in one kernel. >=20 > yes, it so. if there are ports working only on i386 it's necessary > to do it. I don't know such ports :( Whether there is a _port_ that has no amd64 counterpart for i386 one is irrelevant there. The Linux ABI emulation is supposed to work not only with a software installed from port, but with most binaries. If emulating both ia32 and x86_64 simultaneously is technically feasible (and I believe it is), then both should be available. i386->amd64 is not the replacement step, this is an backward-compatible upgrade. --QLVPfMX7UDLv9S3y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkie3UMACgkQC3+MBN1Mb4jDXQCgpHT2r2AelgtGH6fByddNgOAE KDMAn24qBcnKLeLS99R0EcdvudvwSkTX =c/Pi -----END PGP SIGNATURE----- --QLVPfMX7UDLv9S3y--