summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sgx/call.S
Commit message (Collapse)AuthorAgeFilesLines
* selftests/sgx: Rename 'eenter' and 'sgx_call_vdso'Jarkko Sakkinen2021-06-151-3/+3
| | | | | | | | | | | | Rename symbols for better clarity: * 'eenter' might be confused for directly calling ENCLU[EENTER]. It does not. It calls into the VDSO, which actually has the EENTER instruction. * 'sgx_call_vdso' is *only* used for entering the enclave. It's not some generic SGX call into the VDSO. Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
* selftests/x86: Add a selftest for SGXJarkko Sakkinen2020-11-181-0/+44
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, but ensures that all SGX hardware and software infrastructure is functioning. Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Jethro Beekman <jethro@fortanix.com> Cc: linux-kselftest@vger.kernel.org Link: https://lkml.kernel.org/r/20201112220135.165028-21-jarkko@kernel.org