From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Sakkinen Subject: Re: [PATCH v13 06/13] x86/sgx: Detect Intel SGX Date: Tue, 4 Sep 2018 12:56:05 +0300 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 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: platform-driver-x86.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