Re: [PATCH RFC] x86: Add SGX_IOC_ENCLAVE_AUGMENT_PAGES
From: Dave Hansen
Date: Fri Mar 04 2022 - 12:10:50 EST
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?