Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2349170imm; Tue, 4 Sep 2018 02:57:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaVfivbrF3+stfTh+kDA6egqmc2J62aeU+ybVYNV6LmBwdgSquHdQQQRoVqF7srkOPGo4MA X-Received: by 2002:a63:b207:: with SMTP id x7-v6mr5280610pge.401.1536055075100; Tue, 04 Sep 2018 02:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536055075; cv=none; d=google.com; s=arc-20160816; b=T+oqPTyiCKOKmuS3XlFAoS8I79/6x8PQScqGvLQX+OC8VyZSJKEEP3tMrnTCWH0UH5 /bwe1m/WWvoUtOsClVzYm6NMhMrZ4NnlkCFCihLCo/4BCtHGSTiXHNmg6OhbDcUVOKIK fXq0xEG5JzxiKEE5Xn7cTmiI3uW/LSqCd1S4g9SrO8zsADW4Os6K8N730t0mEJueX6rI GZkk7waa74eCU3Ez8ZdmMrf3S4Y5tSgVw0qg6G95Fm+WDpzyhckSHacX14H7TVfP/oh+ RJ4Nb8dQy/CnJ1cexh/g+YNnE1GS/tvLPC64bGI31fSHDaxeXC2p39wQDtq8QybcUgeI a8oA== 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:arc-authentication-results; bh=rZDmTCnz5Dr5kMKqrFswc+XpejwceNuLAaeJOV1cIT4=; b=L6m5ictJFNckVlDzaj2G9QouVUxYVxh+CgcUJn8/EIrpGK5PQMhRwhRL5x3zpHRxT6 qKsOjVrgfjCJ8gtdaaKg3B4BMR1vh7t+dc/W+d1KYNar50rnlEuEqPsH5IlpTHNtd4aZ +UfiQ2vvPlRU7jng6BccPkCvY+tp7c98Xtq5x9HoBWQVn6TBL8GKfWpMgpJqV6iY9cR3 odXyV3SiCZMi6PaOc2FFRVk7kDLrQw4xif2t45XahtQLUhwKRd/TI69OROI/ElM+B2YV prw4aIJBEgzwxcsHshBz2NFG8BxwySmEv4BQVfX5qDq/p0XiKZJrzpjnWiYKmBc0wdPZ FRWg== 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 a9-v6si20516138pgn.177.2018.09.04.02.57.39; Tue, 04 Sep 2018 02:57:55 -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 S1727257AbeIDOUh (ORCPT + 99 others); Tue, 4 Sep 2018 10:20:37 -0400 Received: from mga18.intel.com ([134.134.136.126]:51860 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbeIDOUg (ORCPT ); Tue, 4 Sep 2018 10:20:36 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 02:56:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,329,1531810800"; d="scan'208";a="254342269" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.32]) by orsmga005.jf.intel.com with ESMTP; 04 Sep 2018 02:56:08 -0700 Date: Tue, 4 Sep 2018 12:56:05 +0300 From: Jarkko Sakkinen To: Andy Shevchenko Cc: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Platform Driver , Dave Hansen , sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, suresh.b.siddha@intel.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , serge.ayoun@intel.com, "Rafael J. Wysocki" , Borislav Petkov , Reinette Chatre , Andi Kleen , Greg Kroah-Hartman , "Kirill A. Shutemov" , Linux Kernel Mailing List Subject: Re: [PATCH v13 06/13] x86/sgx: Detect Intel SGX Message-ID: <20180904095605.GB5423@linux.intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-7-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Sep 03, 2018 at 05:26:43PM +0300, Andy Shevchenko wrote: > On Mon, Aug 27, 2018 at 9:57 PM Jarkko Sakkinen > wrote: > > > > From: Sean Christopherson > > > > Intel(R) SGX is a set of CPU instructions that can be used by applications > > to set aside private regions of code and data. The code outside the enclave > > is disallowed to access the memory inside the enclave by the CPU access > > control. > > > > Add a check for SGX to arch/x86 and a new config option, INTEL_SGX_CORE. > > Expose a boolean variable 'sgx_enabled' to query whether or not the SGX > > support is available. > > > + prompt "Intel SGX core functionality" > > + def_bool n > > Default 'default' is 'n'. Perhaps changing prompt to bool will make it > one line less. Sure! > > +#include > > +#include > > Don't we put linux/* followed by asm/* ? Yes. > > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > -- > With Best Regards, > Andy Shevchenko /Jarkko