Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4361930imm; Mon, 25 Jun 2018 14:28:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLVPnY/vk16OnqtiQIP9NQ1UeJ0pxr63q8yxG2CLK1ust/ovj64NloU7JH9K05e0badYNG7 X-Received: by 2002:a62:5046:: with SMTP id e67-v6mr7222657pfb.235.1529962137796; Mon, 25 Jun 2018 14:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529962137; cv=none; d=google.com; s=arc-20160816; b=ZuuFuOobPRQDldja3X13g30HT7vhJp/4mIUhFHVGe3TSMy15zXFvKJ6mThvm6VbgA0 jUr/aa13aUnfgo+U5SNAVllS48o/sXdEh1B+6JpoR2cPEwr3LE207veoY0cCi3hVR5jp 3UQClTd4Yve+CbKwmgnkYFTfghSQbN5igUIixyifGWsQG7xN5oUbwaPH/1l1Jqi1W3x9 Yz7qFqLtX6FNuNMc0RsgDaHPk0TmiCQyRE0RO7jl6/ccN+4ITKwGltK3RjMX2v5QOWY3 UyySPv8cFszoQVZcmW9EdodrDpaxHFfmC4zQ4BEFmTQaGub68yEeOM9NZWDicrjQYay8 pngA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=8HOOONzm2mhW/GfZeh8QD3eIRUcRYoEN6jI1PUZnAKg=; b=mFQTv4sfjp58Xd9BCtsvqaJuit3eLvl8pZFsZkD4vsrfLbW50xOKHwsoyLxoIX9bwR qGYivyQRdZti71yShRBuvcZczJGTBK4f3q1cNpiNYyKUQ9sy1A8NnhadEE1nt/BS8V6K zBx0GO3hlYyZAHtPsfCaosl6aqtz9ZLOlf33hAOffiyGuXOZStjL+t3Xpx99ARtljUg0 4y13yNb7pPSFtJE5lAvp2LSgDc2zye/xEnC/GQihShK01Y23D6j5ooXQBZO3FpGRqmcX SEVaLt+jOMtov37umRq6DsgUV7e4eoOO9oTqWk9dJ1ztnKOxAf32Cj0BVIgw+bQKYhNw X2fg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d77-v6si15144432pfb.262.2018.06.25.14.28.43; Mon, 25 Jun 2018 14:28:57 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932457AbeFYV1M (ORCPT + 99 others); Mon, 25 Jun 2018 17:27:12 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:46924 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588AbeFYV1K (ORCPT ); Mon, 25 Jun 2018 17:27:10 -0400 Received: by mail-oi0-f66.google.com with SMTP id h79-v6so13919243oig.13 for ; Mon, 25 Jun 2018 14:27:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8HOOONzm2mhW/GfZeh8QD3eIRUcRYoEN6jI1PUZnAKg=; b=ppeuV39guGDcteJnhMEjjg/Yl+rDniIz3x+N/AHKeOWUdZ4dP26CNbQf3sxs9IMU/+ 8zP1St41+56Eq+jOkfbTw9viMkbPyRq2DK6Y8C+M4fV9On5M6eTfFQytWpILJsjnweZ/ nR/lACVGMGalyaxv324E1iNctFMRxum/t6aiooGTWNtXg376RlRgavf7tr+jtlC2Ijpm U3wr13xgkoX2MX/QIes0se8ReO//OHb7oL91OCgkWsmoMM1DZ03vHxHa/L+F58rqAu5V WErK/11v0JEwVMP2eLZXpSdDSTSL74XfnXqt/suyYDzbeWPQTNb8gs8P4Pw51qCVxVdN 9DoQ== X-Gm-Message-State: APt69E1RkdDsDVp/QelvZpTPKalUU720HbIYfnlRSnsvaULtIa0su6IU 5ReN2I+L5sIfdYzywdqw9LteL0tQNV9TuCD6zkny3w== X-Received: by 2002:aca:be86:: with SMTP id o128-v6mr8182161oif.301.1529962030058; Mon, 25 Jun 2018 14:27:10 -0700 (PDT) MIME-Version: 1.0 References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> <20180611115255.GC22164@hmswarspite.think-freely.org> <20180612174535.GE19168@hmswarspite.think-freely.org> In-Reply-To: From: Nathaniel McCallum Date: Mon, 25 Jun 2018 17:26:58 -0400 Message-ID: Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave To: jarkko.sakkinen@linux.intel.com Cc: luto@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 5:28 AM Jarkko Sakkinen wrote: > > On Wed, 2018-06-20 at 12:28 -0400, Nathaniel McCallum wrote: > > As I understand it, the current policy models under discussion look like this: > > > > 1. SGX w/o FLC (not being merged) looks like this: > > Intel CPU => (Intel signed) launch enclave => enclaves > > > > 2. SGX w/ FLC, looks like this: > > Intel CPU => kernel => launch enclave => enclaves > > > > 3. Andy is proposing this: > > Intel CPU => kernel => enclaves > > What if MSRs are not writable after hand over to the OS? It is a legit > configuration at least according to the SDM. It seems to me that "set the MSRs in the BIOS" and "set the MSRs in a UEFI module" are functionally equivalent.