Files
Haitao Huang c636761ff4 EDMM support using kernel interfaces
Add a runtime agnostic enclave memory manager implementation in sdk/emm.
The EMM APIs are based on design proposed in this PR: https://github.com/openenclave/openenclave/pull/3991

Enclave common loader changes are in psw/enclave_common/sgx_mm_ocalls.cpp, which are basically
OCall support needed for EMM.

Intel SDK runtime specific support are implemented as runtime abstraction layer: sdk/trts/ema_rt.c

Current limitations, steps to build and test are documented in sdk/emm/README.md

Signed-off-by: Haitao Huang <4699115+haitaohuang@users.noreply.github.com>
Signed-off-by: Xiaofeng Xu <20158212+xxu36@users.noreply.github.com>
2021-10-18 08:31:26 -07:00

29 lines
1.0 KiB
XML

<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<!-- If TCSMaxNum == TCSNum == TCSMinPool, there is no dynamic thread -->
<!-- If TCSMaxNum is omitted, it defaults to TCSNum -->
<!-- According to this setting, there are 10 static threads available -->
<TCSMaxNum>10</TCSMaxNum>
<TCSNum>10</TCSNum>
<TCSMinPool>10</TCSMinPool>
<TCSPolicy>1</TCSPolicy>
<!-- Since there's no dynamic thread, only StackMaxSize is relevant here -->
<StackMaxSize>0x40000</StackMaxSize>
<!-- When there's no gap between HeapMinSize and HeapInitSize, or between
HeapInitSize and HeapMaxSize, no dynamic heap expansion will occur. -->
<!-- In this case, the total available heap is 1 MB-->
<HeapMaxSize>0x100000</HeapMaxSize>
<HeapInitSize>0x100000</HeapInitSize>
<HeapMinSize>0x100000</HeapMinSize>
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
<DisableDebug>0</DisableDebug>
<MiscSelect>1</MiscSelect>
<MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>