diff options
author | Jarkko Sakkinen <[email protected]> | 2020-11-13 00:01:13 +0200 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-11-17 14:36:12 +0100 |
commit | 2c273671d0dfcf89c9c8a319ed093406e3ff665c (patch) | |
tree | 994d4a33976350a8393bab4fb32e0e358a23f4a3 /lib/mpi/mpi-cmp.c | |
parent | 70d3b8ddcd20d3c859676f56c43c7b2360c70266 (diff) |
x86/sgx: Add wrappers for ENCLS functions
ENCLS is the userspace instruction which wraps virtually all
unprivileged SGX functionality for managing enclaves. It is essentially
the ioctl() of instructions with each function implementing different
SGX-related functionality.
Add macros to wrap the ENCLS functionality. There are two main groups,
one for functions which do not return error codes and a “ret_” set for
those that do.
ENCLS functions are documented in Intel SDM section 36.6.
Co-developed-by: Sean Christopherson <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Jethro Beekman <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions