On 2021-04-12 17:36, Dave Hansen wrote: > On 4/12/21 1:59 AM, Raoul Strackx wrote: >> This patch set adds a new ioctl to enable userspace to execute EEXTEND >> leaf functions per 256 bytes of enclave memory. With this patch in place, >> Linux will be able to build all valid SGXv1 enclaves. > > This didn't cover why we need a *NEW* ABI for this instead of relaxing > the page alignment rules in the existing one. > In executing the ECREATE, EADD, EEXTEND, EINIT sequence, you currently have 2 options for EADD/EEXTEND using the SGX_IOC_ENCLAVE_ADD_PAGES ioctl: - execute EADD on any address - execute EADD on any address followed by 16× EEXTEND for that address span Could you be more specific on how you're suggesting that the current ioctl is modified to in addition support the following? - execute EEXTEND on any address -- Jethro Beekman | Fortanix