Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp584434ybk; Wed, 20 May 2020 07:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykl/EbrSW7LRdPme4StQ5vBmXIsPYTCCn1zArEDo4nNEAHNIzmBTSyvf3H0Zk/yEjPCcBl X-Received: by 2002:a17:906:3b4f:: with SMTP id h15mr3655317ejf.421.1589983718568; Wed, 20 May 2020 07:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589983718; cv=none; d=google.com; s=arc-20160816; b=eEYr2fqHOhyTQePb765D9fUeX36aaMFDoofTJBFmcBP5Iv66Bije1vprYQ2B+pF8mQ XUk9zdvDl1iAu/WdaYVTRAEPYrGFsbsVaUJtB/u6rDSnJUxuLFD5WeECJrVJqc3bW1g2 mZ2zows4QZVtgy4khSZW5F2iHoeAby11hPQ1piXxwDP3fJuiiNPSVijSlLcHzqT8AY89 nCht1Ly0ulwN2EFQvQuTLPqHEHBjPQRVOCvLhqucsxXSi8qAtri7g8mtTogKiOD5iq2B 5vwFIakU6WBAXjZU06sU7Ji44xm68OM/k25uf2NDXMMUzJa7vKkbqw0Xn1uKh/iINO28 IW4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=AdSUnC1M2E7Cl+A6sV+3FGmZd+bQV58yTohrFnSDp44=; b=LFiCdfVS26ABoiiEsBIMmC4t+oSD/A1Gj/2zJhz3s89y15xePYVEAMOzPLFzDfZwGL cWxSrp5q7NpkHwtdMCgcWEfOQSUeaX6n/1WXuS9s6OzDAWOWGXzCJI/fpnLBek+O8aDI Pl5pCXBXzUji0W7E9aYAHMMkV6eO8LR5YcnpQb1Bq6OXhjqFZU0Ray2oncROD2tXLg0n vKUX1WvWM6bxK02bqTW4XOx/DgJXKwW8/KUgfFSfU8Bc6CVrG4hJAdqLkLXs9bLVuDof DM+3+swyAFflph7ls+FT4tZxdwv31niqM292bgOFSyqXEIDdnZ+4FmrNJioZdU3ZtFf1 23GQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si1626077ejx.339.2020.05.20.07.08.02; Wed, 20 May 2020 07:08:38 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726720AbgETOEO (ORCPT + 99 others); Wed, 20 May 2020 10:04:14 -0400 Received: from mga17.intel.com ([192.55.52.151]:33806 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgETOEN (ORCPT ); Wed, 20 May 2020 10:04:13 -0400 IronPort-SDR: cfOqL/2PglMPsMUqmPBL46dgO7pfvm9ZT4Y5GbnsNSvyavvbOuwE23vSubNGqD6MwUMHtUTnfc /qmB0cd3VpRg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 07:04:12 -0700 IronPort-SDR: M9dCvdQeUC+baWWCbFtgbQpU/ZPq6nmnS5bIdWxLmZRnk9Tb+A64fwQlUFOOlp5PjS0kuQJO5Z IvbtydjIPTUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,414,1583222400"; d="scan'208";a="440039112" Received: from ttluu1x-mobl.ger.corp.intel.com (HELO localhost) ([10.252.38.239]) by orsmga005.jf.intel.com with ESMTP; 20 May 2020 07:04:03 -0700 Date: Wed, 20 May 2020 17:04:01 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, haitao.huang@intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, Jethro Beekman Subject: Re: [PATCH v30 02/20] x86/cpufeatures: x86/msr: Intel SGX Launch Control hardware bits Message-ID: <20200520140401.GB34750@linux.intel.com> References: <20200515004410.723949-1-jarkko.sakkinen@linux.intel.com> <20200515004410.723949-3-jarkko.sakkinen@linux.intel.com> <20200520122346.GG1457@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520122346.GG1457@zn.tnic> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 02:23:47PM +0200, Borislav Petkov wrote: > > > Subject: Re: [PATCH v30 02/20] x86/cpufeatures: x86/msr: Intel SGX Launch Control hardware bits > ^ > Add > > Needs a verb. "x86/cpufeatures: x86/msr: Add Intel SGX Launch Control hardware bits" > On Fri, May 15, 2020 at 03:43:52AM +0300, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add X86_FEATURE_SGX_LC, which informs whether or not the CPU supports SGX > > Launch Control. > > > > Add MSR_IA32_SGXLEPUBKEYHASH{0, 1, 2, 3}, which when combined contain a > > SHA256 hash of a 3072-bit RSA public key. SGX backed software packages, so > > called enclaves, are always signed. All enclaves signed with the public key > > are unconditionally allowed to initialize. [1] > > > > Add FEATURE_CONTROL_SGX_LE_WR bit of the feature control MSR, which informs > > whether the formentioned MSRs are writable or not. If the bit is off, the > > "aforementioned" > > > public key MSRs are read-only for the OS. Thanks, fixed. > Regards/Gruss, > Boris. /Jarkko