Messages in this thread | | | Date | Fri, 4 Mar 2022 09:08:20 -0800 | From | Dave Hansen <> | Subject | Re: [PATCH RFC] x86: Add SGX_IOC_ENCLAVE_AUGMENT_PAGES |
| |
On 3/4/22 04:28, Jarkko Sakkinen wrote: > Explicit EAUG ioctl is a better choice than an implicit EAUG from a page > fault handler because it allows to have O(1) number of kernel-enclave round > trips for EAUG-EACCEPT{COPY} process, instead of O(n), as it is in the case > when a page fault handler EAUG single page at a time.
So this is basically an optimization? It's MADV_WILLNEED or MAP_POPULATE to the cost of avoid future faults?
| |