From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933383AbcDYTEw (ORCPT ); Mon, 25 Apr 2016 15:04:52 -0400 Received: from mga03.intel.com ([134.134.136.65]:46604 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932972AbcDYTEv (ORCPT ); Mon, 25 Apr 2016 15:04:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,533,1455004800"; d="scan'208";a="939897390" Date: Mon, 25 Apr 2016 22:04:42 +0300 From: Jarkko Sakkinen To: Greg KH Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "open list:STAGING SUBSYSTEM" Subject: Re: [PATCH 3/6] intel_sgx: driver for Intel Secure Guard eXtensions Message-ID: <20160425190442.GE15368@intel.com> References: <1461605698-12385-1-git-send-email-jarkko.sakkinen@linux.intel.com> <1461605698-12385-4-git-send-email-jarkko.sakkinen@linux.intel.com> <20160425175536.GC16786@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160425175536.GC16786@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 25, 2016 at 10:55:36AM -0700, Greg KH wrote: > On Mon, Apr 25, 2016 at 08:34:10PM +0300, Jarkko Sakkinen wrote: > > 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. > > > > Intel SGX driver provides a ioctl interface for loading and initializing > > enclaves and a pager in order to support oversubscription. > > > > Signed-off-by: Jarkko Sakkinen > > --- > > arch/x86/include/asm/sgx.h | 4 +- > > drivers/staging/Kconfig | 2 + > > drivers/staging/Makefile | 1 + > > drivers/staging/intel_sgx/Kconfig | 13 + > > drivers/staging/intel_sgx/Makefile | 12 + > > drivers/staging/intel_sgx/isgx.h | 238 +++++++ > > drivers/staging/intel_sgx/isgx_compat_ioctl.c | 179 +++++ > > No "new" kernel code should ever need compat_ioctl support, please just > create your structures to not require this at all, it isn't that > difficult. I'll rework this. Thanks for the feedback. > thanks, > > greg k-h /Jarkko