From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 28 21:45:28 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AB66BF1F; Mon, 28 Jan 2013 21:45:28 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1.freebsd.org (Postfix) with ESMTP id 00344E83; Mon, 28 Jan 2013 21:45:27 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id go11so4568686lbb.36 for ; Mon, 28 Jan 2013 13:45:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=hdcB6LhUpCR4hw6KLhHAuu+UqErJnoNTOyxSKf0BvFU=; b=U3rgeFWsxGyb+hG5QdbKp7Qfq1mvl8NmIk726n5tm1QzrSRuOe11wpJfP0jEHGCAKs PXp3u+7cxSsV8EA3obJrxY0uPKXx0qHP9oe1Ntcrc3WVx5dLGYLL9sHBe/AjZfedDIoC 6PfsLFZW0+i7Chr/pqoxMATvekdyPOjEhpztAf3oFKRc7kPRa3GTgTpMfc019kGBl5zN QjNYkFVo+mRSxYdZpgtSr9lkZ+UbIShImfCsZ8moULVQ3nBK1OCdrpDYxrlFMD6Yq3e3 oUfqUzG7UigrxGTFNSNBbwm52GwkVuGvfJPHcQOBNFzOFWf0LvwbGUtlUl2RRA1GnQ8U az3w== X-Received: by 10.152.104.199 with SMTP id gg7mr14399792lab.14.1359409521187; Mon, 28 Jan 2013 13:45:21 -0800 (PST) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru. [78.107.232.239]) by mx.google.com with ESMTPS id pz15sm4197969lab.3.2013.01.28.13.45.19 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 13:45:20 -0800 (PST) Received: from dchagin.static.corbina.net (localhost [127.0.0.1]) by dchagin.static.corbina.net (8.14.6/8.14.6) with ESMTP id r0SLjIQE005864; Tue, 29 Jan 2013 01:45:18 +0400 (MSK) (envelope-from dchagin@dchagin.static.corbina.net) Received: (from dchagin@localhost) by dchagin.static.corbina.net (8.14.6/8.14.6/Submit) id r0SLjIxo005863; Tue, 29 Jan 2013 01:45:18 +0400 (MSK) (envelope-from dchagin) Date: Tue, 29 Jan 2013 01:45:18 +0400 From: Chagin Dmitry To: John Baldwin Subject: Re: [PATCH] Move MI bits out of MD linux.h Message-ID: <20130128214518.GA5802@dchagin.static.corbina.net> References: <201301280947.39690.jhb@freebsd.org> <20130128174944.GA4105@dchagin.static.corbina.net> <201301281353.36994.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <201301281353.36994.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 28 Jan 2013 21:45:28 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 28, 2013 at 01:53:36PM -0500, John Baldwin wrote: > On Monday, January 28, 2013 12:49:44 pm Chagin Dmitry wrote: > > On Mon, Jan 28, 2013 at 09:47:39AM -0500, John Baldwin wrote: > > > This patch attempts to reduce duplication between i386/linux/linux.h = and=20 > > > amd64/linux32/linux.h by moving bits that are MI out into headers in= =20 > > > compat/linux. I only moved constants that were defined in MI headers= in Linux=20 > > > itself, not necessarily all constants that have the same value. Furt= her=20 > > > reduction could be possible if we wanted to make a linux-i386.h that = these two=20 > > > headers could share, but that would be a separate project. > > >=20 > > > http://www.FreeBSD.org/~jhb/patches/linux_mi.patch > > >=20 > >=20 > > Hi, John! > > Looks ok to me, furthemore I have similar patches in the local x86_64 l= inuxulator > > repo. So, commit, please. >=20 > So do you have an open PR with patches for the 64-bit linux stuff? I'd > like to look at what you have and see about getting it into the tree if > so. I'm curious about how you handled things (e.g. do you recompile > things like linux_file.c twice once as 32-bit once as native, and do you > have linux32.ko for the existing module and linux.ko for 64-bit)? >=20 Plan - switch linuxulator to the use of the native 1:1 threads first. I'll send patches to review soon. need to write a brief explanation of the new linuxulator. Second, commit vdso, which is used on x86_64 linux by default (now trap at known address used to enter syscall()). Yes, on amd64 thow modules of linuxulator: linux64.ko && linux.ko as requested by kib@. --=20 Have fun! chd --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEG8W4ACgkQ0t2Tb3OO/O2hSACgk6P9HcM09ynmii9M6RVSUHih AGUAnj+pg7gvknuG66niRyzn0ghdmfS0 =pbqe -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--