Skip to content

Commit 629b515

Browse files
rchatrehansendc
authored andcommitted
Documentation/x86: Introduce enclave runtime management section
Enclave runtime management is introduced following the pattern of the section describing enclave building. Provide a brief summary of enclave runtime management, pointing to the functions implementing the ioctl()s that will contain details within their kernel-doc. Signed-off-by: Reinette Chatre <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Link: https://lkml.kernel.org/r/1da0b9a938b28e68e6870ebd5291490d680e700b.1652137848.git.reinette.chatre@intel.com
1 parent a0506b3 commit 629b515

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Documentation/x86/sgx.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,21 @@ pages and establish enclave page permissions.
100100
sgx_ioc_enclave_init
101101
sgx_ioc_enclave_provision
102102

103+
Enclave runtime management
104+
--------------------------
105+
106+
Systems supporting SGX2 additionally support changes to initialized
107+
enclaves: modifying enclave page permissions and type, and dynamically
108+
adding and removing of enclave pages. When an enclave accesses an address
109+
within its address range that does not have a backing page then a new
110+
regular page will be dynamically added to the enclave. The enclave is
111+
still required to run EACCEPT on the new page before it can be used.
112+
113+
.. kernel-doc:: arch/x86/kernel/cpu/sgx/ioctl.c
114+
:functions: sgx_ioc_enclave_restrict_permissions
115+
sgx_ioc_enclave_modify_types
116+
sgx_ioc_enclave_remove_pages
117+
103118
Enclave vDSO
104119
------------
105120

0 commit comments

Comments
 (0)