Date: Sun, 10 Aug 2008 15:21:24 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Chagin Dmitry <dchagin@freebsd.org> Cc: freebsd-emulation@freebsd.org Subject: Re: x86_64 linuxulator patches Message-ID: <20080810122124.GS97161@deviant.kiev.zoral.com.ua> In-Reply-To: <20080810120424.GA15768@dchagin.dialup.corbina.ru> References: <20080810072013.GA15196@dchagin.dialup.corbina.ru> <20080810115406.GR97161@deviant.kiev.zoral.com.ua> <20080810120424.GA15768@dchagin.dialup.corbina.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080810122124.GS97161>