Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp823584ybm; Wed, 27 May 2020 08:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfoLdwRVWBbrSFq7vHVYBed90vAfTajkVWpI+jWXQlHd4p/w4iVfYH7LPebARcR2tRZ6J4 X-Received: by 2002:a50:fc0c:: with SMTP id i12mr25343429edr.174.1590594704261; Wed, 27 May 2020 08:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594704; cv=none; d=google.com; s=arc-20160816; b=oYR67xfwtTndI00++nPCoZJIav5+G3jv79rvwxwtPfkDRnYhAh3sabcBTKYqt0cVvZ QBGYMMzPcM5AXi3gbmTgG9wgilbcdjDPzO6NDT2X9Ok6lzuF4uGk/GxSxs3RYovOwkNe dm6w/Q+8ji3MKwRHo4271qrMvi6t9xCB/V24ozfHD0Bne6mOFzID8+SgX193DKSOaxYT 3oaZmZECh1aLskIxWsu6xBlHjCHhUdmdl8ljr32pvIFDsNtHtQwCWeZoiCn28OZzwhpj htnVS6o1n+lvY0IWFiDcWCz5fwxyqgk7dQvg080FbFps38dloO2XGL1c6/+4r6NsOooh lBCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YAzT/i0ebKx3FpLJN9H2EfUuYMjgSleYWEoLvMZTlsE=; b=KIRkLxsqtSkLyv+yaxcqZjUS2Exyu3zmaoaTVuewzOuCow9/QEnb/EWifvvjvoHDPb HaafXwdGOaVS7MGShiql7gOCKD+QC55ZIwEBEbAEHg3ISp9sASYZm77xkMbSJCGTMhJT jW0tvzUO8SDA4B5VRxqRjqQt/TOYNHZmTeSSqbPbgNdbZ8x66Gy+lqQTXSZFLixra1pE EjcvHDrJHJ2twI6qPzARXfJGRlbxex+bsPU3k0pXLMjxETzioDXA3SNLDmeU84O2VKWZ ACzI19nEi3eW+powOQVFWtNrAXsMw6tE+kSGI95H3S91Rx/Hl2+YHDTx9ATBree9EBUp KBFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vqHnJfYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si1962719ejh.334.2020.05.27.08.51.21; Wed, 27 May 2020 08:51:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vqHnJfYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730101AbgE0MmY (ORCPT + 99 others); Wed, 27 May 2020 08:42:24 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:57411 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728746AbgE0MmX (ORCPT ); Wed, 27 May 2020 08:42:23 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id 311C6D1D; Wed, 27 May 2020 08:42:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 27 May 2020 08:42:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YAzT/i 0ebKx3FpLJN9H2EfUuYMjgSleYWEoLvMZTlsE=; b=vqHnJfYXRqig7SVo6y+0sT K1+kSxInKVF3Tb3dsZYV9MV1LeL95oP0JUyuT3H8Z9eloOrAMEQnvhApifzzdd3P DCnoCtgE6/ppISTecgqZkiTEGeADCsx0nSe26bqogtDQq3/MkWF2EdVI4CHPL++d izQmOSHvkYipuM379y9OZDuIZO9fY5uHqgXedRESO7iXrgAUmKpE/RsiEhCQsmqe 16wgBagd/QYyeVVMemtIgWYH1+j05F8I9QMtBPf3QhjDP60xOzh3FQ21Xywz1QfC nseda01f2Keu3akl16vx9dJ1Uq6q4/m4qkzbc0qWuep2403IW+VY+iHlMJo1f8GA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvgedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesghdtreertdervdenucfhrhhomhephghojhht vghkucfrohhrtgiihihkuceofihojhhusehinhhvihhsihgslhgvthhhihhnghhslhgrsg drtghomheqnecuggftrfgrthhtvghrnhepleejheekjeevheeljeekfefhvddvieetjeei keetheeigeduhfdttdeihfdvleejnecuffhomhgrihhnpehrthhfugdrihhopdhgihhthh husgdrtghomhenucfkphepledurddugeehrdduieelrdeiheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeifohhjuhesihhnvhhishhisghlvg hthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Received: from mail-itl.localdomain (91-145-169-65.internetia.net.pl [91.145.169.65]) by mail.messagingengine.com (Postfix) with ESMTPA id 7937E3061DC5; Wed, 27 May 2020 08:42:20 -0400 (EDT) Received: by mail-itl.localdomain (Postfix, from userid 1000) id 017915D516; Wed, 27 May 2020 14:42:15 +0200 (CEST) Date: Wed, 27 May 2020 14:42:15 +0200 From: Wojtek Porczyk To: Jarkko Sakkinen Cc: Don Porter , Thomas Gleixner , Andi Kleen , Sasha Levin , linux-kernel@vger.kernel.org, bp@alien8.de, luto@kernel.org, hpa@zytor.com, dave.hansen@intel.com, tony.luck@intel.com, ravi.v.shankar@intel.com, chang.seok.bae@intel.com Subject: Re: Re: [PATCH v12 00/18] Enable FSGSBASE instructions Message-ID: <20200527124215.GK14256@invisiblethingslab.com> References: <20200511045311.4785-1-sashal@kernel.org> <0186c22a8a6be1516df0703c421faaa581041774.camel@linux.intel.com> <20200515164013.GF29995@sasha-vm> <20200518153407.GA499505@tassilo.jf.intel.com> <371e6a92cad25cbe7a8489785efa7d3457ecef3b.camel@linux.intel.com> <87v9ksvoaq.fsf@nanos.tec.linutronix.de> <20200519164853.GA19706@linux.intel.com> <7eb45e02-03bf-0af0-c915-794bf49d66d7@cs.unc.edu> <1276588f1ea395bdedf8b5e3af15666f0095dc0d.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kynn+LdAwU9N+JqL" Content-Disposition: inline In-Reply-To: <1276588f1ea395bdedf8b5e3af15666f0095dc0d.camel@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Kynn+LdAwU9N+JqL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 27, 2020 at 11:20:08AM +0300, Jarkko Sakkinen wrote: > On Fri, 2020-05-22 at 16:14 -0400, Don Porter wrote: > > legacy code in SGX. We have been following LKML discussions on this=20 > > instruction for years, and hoping this feature would be supported by=20 > > Linux, so that we can retire this module. To our knowledge, every SGX= =20 >=20 > Why have you followed this for years and never tried the patches? For all the reasons stated before (we preferred a module, not a patchset, a= nd we didn't really care about implications), and because the general situation about kernel drivers is a mess: Intel made three, mutually incompatible lin= ux drivers [1] and we used SDK driver, which incidentally is also how people learn SGX programming in general. With three different drivers and unclear future directions, we chose to wait and see how the situation settles, so we stuck to the driver that was alrea= dy working. Also, we're no kernel developers and there were/still are more urgent things to fix in the graphene proper. For example we only recently have support for running non-debug enclaves using DCAP LE [2]. [1] Here are my notes from when I was figuring out: https://graphene.rtfd.io/en/latest/sgx-intro.html#linux-kernel-drivers [2] https://github.com/oscarlab/graphene/issues/881 https://github.com/oscarlab/graphene/pull/978 --=20 pozdrawiam / best regards Wojtek Porczyk Graphene / Invisible Things Lab =20 I do not fear computers, I fear lack of them. -- Isaac Asimov --Kynn+LdAwU9N+JqL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEaO0VFfpr0tEF6hYkv2vZMhA6I1EFAl7OYCgACgkQv2vZMhA6 I1EnzRAAreQQvrt9oGbSrtNJ9t2bQRyG5l0jT7OhCTRWX5Wtfkv6q5KO4IkRodbW bBLhAs5kSo75oXiisJD+otDO03Do+wEeQIfGoPqewARqwPS90d/gcZUG7Wgyopvu beFRssdIwjf3SM/0GpvnUyHKdq5Ewk0REyrY2yrUVnFX82J13Cg8REuDREtOOdra HYeBwO84uRHGEG/Om3dBDRyujO0rWRB7w6etr6ZSEGhgPZV1Nq7fv/QMFCW0RTpm NapBcgjnKNARZSYw+cy/PR5SFad0qTdluwN/g4OUE4Daei2/NwoXjvNkRAMI7DB8 itfPVPQqalunGSva2hWj1wwyGa3aToTsZGW/2wQXjijiDoaoGku49lg2DBkvphZs CIieYeX1y2NY7PUozLGbLEZ/lEFLfPIJSanBYh1vIsM0Q+HKD/HCandC2mw7gNLD QOH4LRflKm57UYhqtdokbQXKJAde992t+CMKtIg6snh/nIVo3HcIK0StQnMMdSn/ T/GXLxxA3I9SoKN1+Ua50Qww/SDXw7LX+isWcNv7fTUtLrn0i47O//m1OlsZ1Qj9 0qlRX5eec5xWmE/R+LwtVUSjGtLtpI4g5nWgpud/NVz6C8rcXVsTy1BeehrJCpXH ZmmO6W+WKlG7C8XiBKL4HZyzQr0lLFhTQ2oz/pIksiehue5QP+E= =rRZW -----END PGP SIGNATURE----- --Kynn+LdAwU9N+JqL--