Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6577418imm; Wed, 27 Jun 2018 09:45:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdYPAE5J3OXBKySEkd3Jo9VHczgm1Ql6CFCIbiAv6leLfQXfdsOJ9dRVuus8e3RCoRrc/20 X-Received: by 2002:a65:5185:: with SMTP id h5-v6mr6014331pgq.0.1530117908301; Wed, 27 Jun 2018 09:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530117908; cv=none; d=google.com; s=arc-20160816; b=L+lPa19lpj7OKionE1B1Fab0nQkeEJzZU3NfMiiSTtBAnDqqdukDj411BNclG4h/sO 7PDt8cnxf5AWHX/gPNe4FOArzF6hbrDLchEC9ELg8BmRT7/G5hnYmFAZp7VK36s34MOj zIGzQOMPoZaGxEGey8NbzNpOSsUrgERDq1oUBRZ3M8Nv2vH9utXn5s7kscDUpkF2L6rg gQcvFbAEA4KTjR2sUAl9awBh5awflv7Ojbgdp9X0dUhrzi18F8SEBOzbFKgkUQRsEdO1 uvXNzCdUZ6dLS7d4AslggW0OK1lbUPUISOH51F222J14ljDA8vqUeBrzni9V2of8HXeQ FL7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=K/nkCKkxRoXtXwaaG5lPQEVy8P8OGk0L2VIaK7s8o3I=; b=qG49WJBZM7Jm9zaoPcYwG/6mpMHW6x0L17oklPHgI7Oua/NNioel/S01PL3S8Shx1p bXfWEmAVvtb5GXGkF9jgtLlI2N9ULvEPt0AA4QLaYgX/xBvtcddSdzJriEufjkTFrakT q9iJTLeFTFSStpT2654F77+1kY8H+RSxhs4o33dLGTgA072fgYnbTeRDNy8Sai9ZF7rO 4KmgG3C5JEVP17s0t1jVeSuIIWCFbWl7g/17e7B4U5jK7H37cUTXdAjQqlQ0es5RF7vQ RgQKQcH1vGGgyn8rOmItGgJ82D0Spw3QWfTFyRCT6dUOVbDn89uIKyMcjK/Sj8pLGPev eVKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf6-v6si4203794plb.44.2018.06.27.09.44.54; Wed, 27 Jun 2018 09:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965588AbeF0Pbx (ORCPT + 99 others); Wed, 27 Jun 2018 11:31:53 -0400 Received: from mga06.intel.com ([134.134.136.31]:40847 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754567AbeF0Pbp (ORCPT ); Wed, 27 Jun 2018 11:31:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2018 08:31:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,279,1526367600"; d="scan'208";a="50978429" Received: from tkaikuma-mobl.ger.corp.intel.com ([10.249.254.71]) by fmsmga008.fm.intel.com with ESMTP; 27 Jun 2018 08:31:37 -0700 Message-ID: <2fef21b0fb411015cfb748c3fecaf7575652f500.camel@linux.intel.com> Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave From: Jarkko Sakkinen To: Nathaniel McCallum Cc: luto@kernel.org, sean.j.christopherson@intel.com, jethro@fortanix.com, Neil Horman , x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, intel-sgx-kernel-dev@lists.01.org, hpa@zytor.com, dvhart@infradead.org, tglx@linutronix.de, andy@infradead.org, Peter Jones Date: Wed, 27 Jun 2018 18:31:35 +0300 In-Reply-To: References: <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> <20180611115255.GC22164@hmswarspite.think-freely.org> <20180612174535.GE19168@hmswarspite.think-freely.org> <20180620210158.GA24328@linux.intel.com> <73b7e4e3712074b73f4ac8211699d24dfdced6bf.camel@linux.intel.com> <689641dc26a91f7b4b6bfdb763fec90bf7c3e984.camel@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-26 at 11:01 -0400, Nathaniel McCallum wrote: > On Tue, Jun 26, 2018 at 4:44 AM Jarkko Sakkinen > wrote: > > > > On Mon, 2018-06-25 at 08:45 -0700, Andy Lutomirski wrote: > > > I'm personally rather strongly in favor of the vastly simpler model in > > > which we first merge SGX without LE support at all. Instead we use > > > the approach where we just twiddle the MSRs to launch normal enclaves > > > without an init token at all, which is probably considerably faster > > > and will remove several thousand lines of code. If and when a bona > > > fide use case for LE support shows up, we can work out the details and > > > merge it. > > > > Andy, I was going to propose exactly the same :-) > > > > We can upstream SGX that supports only unlocked MSRs and that does > > not preventing to upstream support for locked MSRs later. Even if > > we had a consensus for locked MSRs, making two milestones for the > > mainline would make perfect sense. > > > > I came into this conclusion last night because all the other review > > comments not concerning the launch control are easily sorted out. > > +1. Let's do this and get it merged without launch enclave support > lockdown now. We can revisit this once we have hands on experience > with the technology. I'm proceeding with this ATM. I'm going to send v12 next week. I'll do my best to address all of the review comments but expect to miss some of them. /Jarkko