Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4195878imm; Tue, 25 Sep 2018 13:03:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61M6+N5VGXOzs38Pa7c3JKst1aWBOEFMb8hzHw9iiZc12G3919xv7ps1daeRyC+hizCmtJk X-Received: by 2002:a17:902:b58f:: with SMTP id a15-v6mr2666878pls.23.1537905817756; Tue, 25 Sep 2018 13:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537905817; cv=none; d=google.com; s=arc-20160816; b=roHnO/pVMCI6OVfdgxcSlpU8QgDdb8UHPvxdUrfdQTeomVTG84u+MUZaNb8qKSazUD gDruoxzDrtslAMfm4X+73XnMiey9ONMgg+75wlAkCGyeMBa4K5DsocoddX6yqDGaWEBQ b9T54p1LNuxRgvnaqvnCChy/QuoSK+JV9ToQuCw7vOrAKnL8yuZKmoE6Qv5+lc5L8LB4 2VDBIrd7KR3Jv2twZ0D6f1RKdai4qlnqaMuk6mFsVsgwCpaMa8l4s7tMt7aPJfLPPf1J qQ6gORQuG85OIQPX9O9Idba11uv1aDyZ4WkhCgjTDcHdgzoPD2PGz2RMQrPScbNGCHD3 VIKw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=rI9L9Ysotx9sweG9M3x1y3ki+CsTgXRWHQNspMZtW1I=; b=dWz2knlS7Kpzu3GAcmaR6rlti1aa1mGK+H305f96GF7m/513VTBezMq3fQOzmaiF9N YUHMKmbYbY/oJ6u9qWCth8QhlJwth3dCkzrrtbeYNYLH3isCIauGBLjbd0TNp8iwf25g o2yR5HQOHlA0vXKBo9SihtQlO8ZkEjiyx+E/8+TdfA7kjTdnww7FZH7obHkeYLTJFZrm kEZQ3yE3M0irXN2RATZflsCcJfACphVTCq2tUbDjbKoMZL7pgDInRwx5m7nmweGhx/M/ KdNd3GAfj5/TjFoR2/q0KvIC5+ogJ5In/p3Ra/QMZhrZMCJTTJUTMMTqLg0Im/Zc6Ex9 +mhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hPU2NQko; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v190-v6si3275755pgd.658.2018.09.25.13.03.22; Tue, 25 Sep 2018 13:03:37 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hPU2NQko; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbeIZCLs (ORCPT + 99 others); Tue, 25 Sep 2018 22:11:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36728 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbeIZCLs (ORCPT ); Tue, 25 Sep 2018 22:11:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To: Subject:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rI9L9Ysotx9sweG9M3x1y3ki+CsTgXRWHQNspMZtW1I=; b=hPU2NQko1PZ+XGann7Fafgz5h ysPCgV2ZYUKskKhSyCj45OcycM0Mzx+GVk7MQt3gURfQ80x31v7Pk0KbhKLkLPPsDx/xRuXj+XM8c 1B3vxvfwvSUNwz6JSMQCTOUnf9kc+Htj1Z43+K4BbTpDIeysYaFTboFINoqLfWzM/Dgf3A6gKXTbU biRsZvc6i1ZQZK30cD8blxVxhctVVtr/W+jlV0hzUkrteLx2i7eICf05rItJ2KzLPUiUk6ivZ1rKg ZXPQ2l1P0UPf50gikO+QLfxQmmpri+Weq5BLnEQ+Q0ATlRxWKIllzZEuvaxLK1nnX9bJmYRN7kvWQ GgpYBDyMw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4tXE-0000kX-BI; Tue, 25 Sep 2018 20:02:36 +0000 From: Randy Dunlap Subject: [PATCH v14 10/19] x86/sgx: Detect Intel SGX To: Jarkko Sakkinen , x86@kernel.org, platform-driver-x86@vger.kernel.org Cc: 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)" References: <20180925130845.9962-1-jarkko.sakkinen@linux.intel.com> <20180925130845.9962-11-jarkko.sakkinen@linux.intel.com> Message-ID: <7ea823ce-d6ee-1ff0-efb4-3ca93536fb7e@infradead.org> Date: Tue, 25 Sep 2018 13:02:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180925130845.9962-11-jarkko.sakkinen@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- ~Randy