Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

SGX Loading

Sam5
新分销商 I
1,627 次查看

Hi,

Is it possible to load a program larger than the EPC memory to an enclave? I got an error immediately when loading big programs.

-Thanks

0 项奖励
1 解答
Surenthar_S_Intel
1,627 次查看

Hi Sam,

No, you cannot at this time load an enclave that is larger than the EPC. Due to the current lack of paging support (and lack of dynamic page allocation that v2 will provide) this means that the combined HeapMaxSize of all enclaves loaded at the same time cannot exceed said ~90MB. So your enclave will have to use well below 90MB of heap size on current hardware.

Thanks and Reagrds,
Surenthar Selvaraj

在原帖中查看解决方案

0 项奖励
2 回复数
Surenthar_S_Intel
1,628 次查看

Hi Sam,

No, you cannot at this time load an enclave that is larger than the EPC. Due to the current lack of paging support (and lack of dynamic page allocation that v2 will provide) this means that the combined HeapMaxSize of all enclaves loaded at the same time cannot exceed said ~90MB. So your enclave will have to use well below 90MB of heap size on current hardware.

Thanks and Reagrds,
Surenthar Selvaraj

0 项奖励
Sam5
新分销商 I
1,627 次查看

Thanks for your detailed information

0 项奖励
回复