lkml.org 
[lkml]   [2017]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 03/11] x86: define IA32_FEATURE_CONTROL.SGX_ENABLE
On Tue, Nov 28, 2017 at 09:13:18AM -0800, Sean Christopherson wrote:
> On Sat, 2017-11-25 at 21:29 +0200, Jarkko Sakkinen wrote:
> > From: Sean Christopherson <sean.j.christopherson@intel.com>
> >
> > When IA32_FEATURE_CONTROL.SGX_ENABLE and IA32_FEATURE_CONTROL.LOCK are
> > set by the pre-boot firmware, SGX is usable by the OS.
>
> This implies that only pre-boot firmware can write feature control, which is not
> true.  What about:
>
>     SGX instructions (ENCLS and ENCLU) are usable if and only if SGX_ENABLE is
>     set in the IA32_FEATURE_CONTROL MSR and said MSR is locked.

You are correct, thanks. I'll fix this for v7.

/Jarkko

\
 
 \ /
  Last update: 2017-11-28 21:48    [W:0.065 / U:1.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site