sgx_encl_eaug_page(9)
π
sgx_encl_eaug_page(9) β Kernel API Manual β¨
okay so welcome to the Kernel API Manual entry for sgx_encl_eaug_page(9), and yes bestie, weβre getting into it π«Ά
πΈ NAME πΈ
sgx_encl_eaug_page β Dynamically add page to initialized enclave π
β¨ SYNOPSIS β¨
vm_fault_t sgx_encl_eaug_page (struct vm_area_struct *vma , struct
sgx_encl *encl , unsigned long addr );
π ARGUMENTS π
vmaβ the VMA obtained from fault info from where the page is accessed, periodt π¦enclβ the enclave accessing the page, main character energy fr fr πaddrβ the address that triggered the page fault, iconic π
π₯ DESCRIPTION π₯
When an initialized enclave accesses a page with no backing EPC page on a SGX2 system, then the EPC can be added dynamically via the SGX2 ENCLS[EAUG] instruction. no cap, thatβs the vibe β¨
π RETURN π
Appropriate vm_fault_t: VM_FAULT_NOPAGE when the PTE was installed successfully, or VM_FAULT_SIGBUS or VM_FAULT_OOM as error otherwise. lowkey important, bestie π«Ά
π§ SEE ALSO π§
- Kernel file
./arch/x86/kernel/cpu/sgx/encl.c reclaimer_writing_to_pcmd(9)sgx_encl_may_map(9)sgx_encl_release(9)sgx_encl_cpumask(9)__sgx_encl_get_backing(9)sgx_encl_alloc_backing(9)sgx_encl_lookup_backing(9)sgx_encl_put_backing(9)sgx_encl_test_and_clear_young(9)sgx_zap_enclave_ptes(9)sgx_alloc_va_page(9)sgx_alloc_va_slot(9)sgx_free_va_slot(9)sgx_va_page_full(9)sgx_encl_free_epc_page(9)
and thatβs the whole page, bestie π cute little sign-off: source/version vibes come from ./arch/x86/kernel/cpu/sgx, dated October 2026, and the page itself is sgx_encl_eaug_page(9) β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms