The .edl files contain a HeapMaxSize
entry. The SDK User Guide states that this is because
Enclave memory is a limited resource. Maximum heap size is set at enclave creation.
But doesn't the SGX specification allow EPC page swapping (EPA, EBLOCK, ETRACK, EWB)?
Or in a more practical sense: is there a disadvantage to setting HeapMaxSize=2^64
Bytes?
Maybe EPC page swapping is not yet supported by the SDK, or maybe the trusted enclave code has to manually trigger such swapping?
Edit
As ab. points out, with SGXv1 all EPC pages have to be EADD
ed prior to enclave execution. Does the SDK at this point support only SGXv1 instructions?