Re: [PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-08-28 Thread Jarkko Sakkinen
On Thu, Aug 27, 2020 at 08:20:51AM -0700, Sean Christopherson wrote: > On Thu, Aug 27, 2020 at 12:47:04AM -0400, Nathaniel McCallum wrote: > > > +int main(int argc, char *argv[], char *envp[]) > > > +{ > > > + struct sgx_enclave_exception exception; > > > + struct vdso_symtab symtab; >

Re: [PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-08-27 Thread Sean Christopherson
On Thu, Aug 27, 2020 at 12:47:04AM -0400, Nathaniel McCallum wrote: > > +int main(int argc, char *argv[], char *envp[]) > > +{ > > + struct sgx_enclave_exception exception; > > + struct vdso_symtab symtab; > > + Elf64_Sym *eenter_sym; > > + uint64_t result = 0; > > +

Re: [PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-08-26 Thread Nathaniel McCallum
On Thu, Jul 16, 2020 at 9:58 AM Jarkko Sakkinen wrote: > > Add a selftest for SGX. It is a trivial test where a simple enclave > copies one 64-bit word of memory between two memory locations. > > Cc: linux-kselft...@vger.kernel.org > Signed-off-by: Jarkko Sakkinen > --- >

[PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-07-16 Thread Jarkko Sakkinen
Add a selftest for SGX. It is a trivial test where a simple enclave copies one 64-bit word of memory between two memory locations. Cc: linux-kselft...@vger.kernel.org Signed-off-by: Jarkko Sakkinen --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sgx/.gitignore