From owner-svn-src-all@freebsd.org Wed Apr 6 06:40:07 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62B53B05F00; Wed, 6 Apr 2016 06:40:07 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09CB91E4A; Wed, 6 Apr 2016 06:40:06 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x244.google.com with SMTP id o129so819588wmo.3; Tue, 05 Apr 2016 23:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CCCaDQ4YT/LSh9ZP1EVaXeYTUdo2/c+S4inyMinEDic=; b=QGwMKvjl9dutFSNRHhJkaiDcsB0doISPYOoO7B9QsaiQjGCmORmLJRX7IAxd4dL34e PNPXwke8sQOTTrARh+AMcGyqq8HuAwubtEDwA4ZFRxHZJT72mHn8vwfSp93O5YgA23LO DCD9Va1lgvKF8GAqm0FSnqw1Ued/Bl78qVC3J+v8ujWgsmLsGso6YkoiM7pinK88Y/T4 5E3I79g7DxLrdhCRIXyJTTXm6pwuu2HjAeA4uMOY1g9hz+iiApbeYU1sJxBxdArDbuf9 SEONurKsez5ESadlojqmSC7MimzAKfc5kDKWyPtoBJHqQPBj4o2Sn1QTYg0oY/N0IJ5w Q2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=CCCaDQ4YT/LSh9ZP1EVaXeYTUdo2/c+S4inyMinEDic=; b=Iw+gppbldxhd7+jAa4DlVmDX13LupMA4/y5UjRKIect3LvQlYMhbxy2nnXNlgC8+kO aJaHg6ss51TqifTv0oTbKJ66ITzXKvjsEUgg7ymEp8atHoglb/H/KeKr33wyT4AuTEeI 3HOg9MGLV6bj8vIHG8XqK2nHACQS8ez3uHnqUYhZa5ASET6S7PXcFmJrbpyDEagAmnWO IXIMYTHwtl9PgktuAyYPypiGN8bY8ueJaoyOcxZ2Cg/zZw668TSNgfceGehPJqBV86TW Rk60UmBmvZuUCcSQ4yCY41+dpfTotJ8um2LuzR36AhYxDq2x9ok/Vhnv/FTU2UiUQO7z up3A== X-Gm-Message-State: AD7BkJJV6CdKYiUDnY7I6qUrazhHne+D9wNNJqp9RCcpNyx94nDWJkyEUguofL+tAuqjlA== X-Received: by 10.28.210.73 with SMTP id j70mr21800968wmg.8.1459924805514; Tue, 05 Apr 2016 23:40:05 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id ks5sm1506395wjb.13.2016.04.05.23.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 23:40:04 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 6 Apr 2016 08:40:02 +0200 From: Baptiste Daroussin To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r297597 - in head/sys: amd64/linux amd64/linux32 i386/linux Message-ID: <20160406064002.GJ49864@ivaldir.etoilebsd.net> References: <201604052236.u35ManwQ076790@repo.freebsd.org> <2270129.DEqYKEiVDZ@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="P6YfpwaDcfcOCJkJ" Content-Disposition: inline In-Reply-To: <2270129.DEqYKEiVDZ@ralph.baldwin.cx> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 06:40:07 -0000 --P6YfpwaDcfcOCJkJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 05, 2016 at 06:32:16PM -0700, John Baldwin wrote: > On Tuesday, April 05, 2016 10:36:49 PM Baptiste Daroussin wrote: > > Author: bapt > > Date: Tue Apr 5 22:36:48 2016 > > New Revision: 297597 > > URL: https://svnweb.freebsd.org/changeset/base/297597 > >=20 > > Log: > > Add kern.features flags for linux and linux64 modules > > =20 > > kern.features.linux: 1 meaning linux 32 bits binaries are supported > > kern.features.linux64: 1 meaning linux 64 bits binaries are supported > > =20 > > The goal here is to help 3rd party applications (including ports) to = determine > > if the host do support linux emulation > > =20 > > Reviewed by: dchagin > > MFC after: 1 week > > Relnotes: yes > > Differential Revision: D5830 >=20 > Other parts of the system (e.g. libsysdecode, the various symbols exporte= d by > the modules, etc.) use "linux" to mean supporting Linux binaries of the s= ame > ABI as the host (so x86-64 on amd64 and i386 on i386) and "linux32" to me= an > supporting 32-bit Linux binaries on a 64-bit host. Note that we used to > have linux.ko on Alpha which was a 64-bit ABI, not 32-bit. It is unfortu= nate > that we called linux32.ko linux.ko, but we shouldn't perpetuate that mist= ake > further IMO. For example, I think if we grow Linux/aarch64 ABI support on > FreeBSD/arm64, that should be called 'linux.ko', not 'linux64.ko'. > Similarly, Linux/armv6 on FreeBSD/armv6 would also be 'linux.ko'. >=20 > I would also list the names in the feature description (so Linux/i386, not > Linux 32-bit, since Linux/armv6 is a 32-bit binary, but linux.ko on > FreeBSD/i386 can't run it). >=20 Well I tried to be consistent with the other example we have which is cloud= abi. I considered the x86 case and tried to generalize: linux =3D> my arch (x86) in 32bit linux64 =3D> my arch (x86) in 64bit Let's consider aarch64 which is supposed to also have support for 32bits (o= ne would be happy to run linux armv6 on top of it ,no?) linux =3D> my arm in 32bits linux64 =3D> my arch in 64bits That said, I have no strong feelings about it Bapt --P6YfpwaDcfcOCJkJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXBK9CAAoJEGOJi9zxtz5arTQQANADUN8mLAMDD/4cgoHyrMK+ e5NAFSbJTaixYkr944YQkVYTWgalCzN3c3J5WdRdWRU+2R3xQAZq8emVPHUSSEN6 mk7eCvjbCCW14ufUEUSx7z+IKeGXBjhYFlI/tRcf2WLtAry31/iTwJ9uvOHcvp/k PRrqmtQPafAj7OdBpz1cay/JnjwlS8q2/V7EHE1H7ty0cgPFUA6M3C2h7oRTGaPA 0vTF/Zwsoa8xUVBdX5MDe75ldBroz6cExB5PXUJAft9Cmhx3u7UnLvdwDIl1EfOc QRPlCm3rhPEsOKTrKFhIPURWtso014U7GDHkUIgq2Inpo3de3Po2ScKWBjMHjG7v No9R98JwGM2AfLPJR9bfsmvI5o8WZCXmlp/iwt7Sjf9sVqz5n6WtW3mivsQQ2qLR WfvAZPRwHhEhsirbUXlfhg6EQ85ORJ7wtIYxKpeUut7XzyAHLN+SH7jvkza81I2Q BFxqYJ9WXB8kjKhzmYndGcXWDLeI6jH0cRMwKAriVAdVuFGeU/tW48ldFcec7uor 9vHbPJDZRUCp4kNgBuLqz1rQM0Jd+1ZJUigmq+OT+BYHzaF8R4MfY0wy+dIrH68j Cc0MyTkMC69WiISF4C4jJI20QiQptjL57SjaYMu7aXu97cWWGScmiu1qu4KFOGg+ TJH4jWdexCYmOkAR3K99 =hksm -----END PGP SIGNATURE----- --P6YfpwaDcfcOCJkJ--