Re: [PATCH v15 15/23] x86/sgx: Add wrappers for ENCLS leaf functions

2018-11-06 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 10:39:46PM +0200, Andy Shevchenko wrote: > On Mon, Nov 5, 2018 at 7:30 PM Jarkko Sakkinen > wrote: > > > > On Sat, Nov 03, 2018 at 03:17:35PM +0200, Andy Shevchenko wrote: > > > On Sat, Nov 3, 2018 at 1:18 AM Jarkko Sakkinen > > > wrote: > > > > > > > > ENCLS is an umbrell

Re: [PATCH v15 15/23] x86/sgx: Add wrappers for ENCLS leaf functions

2018-11-05 Thread Andy Shevchenko
On Mon, Nov 5, 2018 at 7:30 PM Jarkko Sakkinen wrote: > > On Sat, Nov 03, 2018 at 03:17:35PM +0200, Andy Shevchenko wrote: > > On Sat, Nov 3, 2018 at 1:18 AM Jarkko Sakkinen > > wrote: > > > > > > ENCLS is an umbrella instruction for a variety of cpl0 SGX functions. > > > The ENCLS function that

Re: [PATCH v15 15/23] x86/sgx: Add wrappers for ENCLS leaf functions

2018-11-05 Thread Jarkko Sakkinen
On Sat, Nov 03, 2018 at 03:17:35PM +0200, Andy Shevchenko wrote: > On Sat, Nov 3, 2018 at 1:18 AM Jarkko Sakkinen > wrote: > > > > ENCLS is an umbrella instruction for a variety of cpl0 SGX functions. > > The ENCLS function that is executed is specified in EAX, with each > > function potentially h

Re: [PATCH v15 15/23] x86/sgx: Add wrappers for ENCLS leaf functions

2018-11-03 Thread Andy Shevchenko
On Sat, Nov 3, 2018 at 1:18 AM Jarkko Sakkinen wrote: > > ENCLS is an umbrella instruction for a variety of cpl0 SGX functions. > The ENCLS function that is executed is specified in EAX, with each > function potentially having more leaf-specific operands beyond EAX. > ENCLS introduces its own (pos

[PATCH v15 15/23] x86/sgx: Add wrappers for ENCLS leaf functions

2018-11-02 Thread Jarkko Sakkinen
ENCLS is an umbrella instruction for a variety of cpl0 SGX functions. The ENCLS function that is executed is specified in EAX, with each function potentially having more leaf-specific operands beyond EAX. ENCLS introduces its own (positive value) error codes that (some) leafs use to return failure