]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sgx: Add short descriptions to ENCLS wrappers
authorReinette Chatre <reinette.chatre@intel.com>
Tue, 10 May 2022 18:08:37 +0000 (11:08 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 7 Jul 2022 17:13:01 +0000 (10:13 -0700)
commit11b14368941d94eb14475958759ea14c01abb06a
treee0162597c1f41b573d5615a875b61336325a2017
parent8958e48692ec92b3205814b0776f9f6b8e269d1c
x86/sgx: Add short descriptions to ENCLS wrappers

The SGX ENCLS instruction uses EAX to specify an SGX function and
may require additional registers, depending on the SGX function.
ENCLS invokes the specified privileged SGX function for managing
and debugging enclaves. Macros are used to wrap the ENCLS
functionality and several wrappers are used to wrap the macros to
make the different SGX functions accessible in the code.

The wrappers of the supported SGX functions are cryptic. Add short
descriptions of each as a comment.

Suggested-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lkml.kernel.org/r/5e78a1126711cbd692d5b8132e0683873398f69e.1652137848.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/sgx/encls.h