In the legacy sgx-lkl, it is easy to tell the runner how much space the application wants by passing SGXLKL_HEAP environment variable.
But this option looks disappeared in SGX-LKL oe port.
I have attempted to build openenclave with -DOE_HEAP_ALLOTTED_PAGE_COUNT=512000 and then pass SGXLKL_OE_HEAP_PAGE_COUNT= 512000, but the heap stress test here https://github.com/randoruf/cs-nano-projects/tree/main/sgx-lkl-oe-calloc-stress failed to generated the heap size I wanted.
Is there a method to tell sgx-lkl the size of the enclave in the initialization phase?
In the legacy sgx-lkl, it is easy to tell the runner how much space the application wants by passing
SGXLKL_HEAP
environment variable. But this option looks disappeared in SGX-LKL oe port. I have attempted to build openenclave with-DOE_HEAP_ALLOTTED_PAGE_COUNT=512000
and then passSGXLKL_OE_HEAP_PAGE_COUNT= 512000
, but the heap stress test here https://github.com/randoruf/cs-nano-projects/tree/main/sgx-lkl-oe-calloc-stress failed to generated the heap size I wanted.Is there a method to tell sgx-lkl the size of the enclave in the initialization phase?