Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2016976imm; Thu, 27 Sep 2018 06:14:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV60nWAkE+Q7OZ2wHGMjLERijW2W//nM6C/39cwq0PgNTWAkeXIRIWqLHiXEYi+9VBBNxSnOj X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr11033743pln.60.1538054080049; Thu, 27 Sep 2018 06:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538054080; cv=none; d=google.com; s=arc-20160816; b=SgspqT4NIYjow03iK6P1U1K/zLeqQNpzWfwWFk/kY3PluPoLB024leeoRfmmBWgdMV KZ79QC9NnoCNAPPWj2zZR/SZSbXpusEq7LMvW9Jj4b+Gh3X5lILWkE9CX0UVcpX81US+ p/ajvqKhAqxcnJuqLmMrND0oisMyWcqFEPGcVtdM4Hp6RcEyAiVvxnGz8aG5rsX6DMrv bbFkdMsO5GQobek0LHHeVc4Ffix+eXrE0qZU6DaRtXTvz7P7Q33xRmvPe2rQHaOyg5+i y37X5GBGmCbHJqE2XkbU49/rrW7w1+rs3zu8V0l7W/mjRWut45ivnXYrYb8xnqLS5I8H wWhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BjllUDxd4H1evYyzdlFZbeJuJJB91R5bywwD2zyCtrE=; b=c0QD9Ddnh4S4r9XCQT6FMEVcRBDDHJUJ/9sS76BOzDb5NXKBxniJjIFp6SZYJZ2uv7 CjNpFaX3MMEkcilfD0T83TVviVEtG8C2wI26Wv8IG7ifNuCa0rVXoDg/24t49fcCAOZC DIAmOSPJ3KRf62/LsQJHEpeEAxh+18bp41smo9MEOrvQf4Xg/e8ZvTgB13u3d0cYkhP6 wt1RYIvRWNoaSxTpgmdOGDb6tXlfdSX9qEOUmCtPpxRlGV3Lv0MZiCT5+BiGpy76qj5p 6Mvmd2ioOt/HhRUF+gsfKJDWAVYCLacFburHs/wt7Wy8cUMu4NlWZDcXBg3Jiny50sS+ 7GSw== 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 f62-v6si2023257pfb.218.2018.09.27.06.14.00; Thu, 27 Sep 2018 06:14:40 -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 S1727603AbeI0TbW (ORCPT + 99 others); Thu, 27 Sep 2018 15:31:22 -0400 Received: from mga02.intel.com ([134.134.136.20]:22443 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727545AbeI0TbW (ORCPT ); Thu, 27 Sep 2018 15:31:22 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 06:13:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,310,1534834800"; d="scan'208";a="236458523" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.69]) by orsmga004.jf.intel.com with ESMTP; 27 Sep 2018 06:13:01 -0700 Date: Thu, 27 Sep 2018 16:13:00 +0300 From: Jarkko Sakkinen To: Randy Dunlap Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, serge.ayoun@intel.com, shay.katz-zamir@intel.com, linux-sgx@vger.kernel.org, andriy.shevchenko@linux.intel.com, Suresh Siddha , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Rafael J. Wysocki" , Reinette Chatre , Greg Kroah-Hartman , "Kirill A. Shutemov" , Andi Kleen , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v14 10/19] x86/sgx: Detect Intel SGX Message-ID: <20180927131300.GC5436@linux.intel.com> References: <20180925130845.9962-1-jarkko.sakkinen@linux.intel.com> <20180925130845.9962-11-jarkko.sakkinen@linux.intel.com> <7ea823ce-d6ee-1ff0-efb4-3ca93536fb7e@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ea823ce-d6ee-1ff0-efb4-3ca93536fb7e@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 25, 2018 at 01:02:14PM -0700, Randy Dunlap wrote: > On 9/25/18 6:06 AM, Jarkko Sakkinen wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 1a0be022f91d..b47e1a144409 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -1913,6 +1913,23 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS > > > > If unsure, say y. > > > > +config INTEL_SGX_CORE > > + bool "Intel SGX core functionality" > > + depends on X86_64 && CPU_SUP_INTEL > > + help > > + Intel Software Guard eXtensions (SGX) CPU feature that allows ring 3 > > + applications to create enclaves: private regions of memory that are > > + architecturally protected from unauthorized access and/or modification. > > + > > + This option enables kernel recognition of SGX, high-level management > > + of the Enclave Page Cache (EPC), tracking and writing of SGX Launch > > + Enclave Hash MSRs, and allows for virtualization of SGX via KVM. By > > + itself, this option does not provide SGX support to userspace. > > + > > + For details, see Documentation/x86/intel_sgx.rst > > + > > + If unsure, say N. > > + > > Hi, > coding-style.rst says that help text should be indented with > one tab + 2 spaces. > > thanks. Thank you. /Jarkko