Closed dayeol closed 5 years ago
Plus, it solves #23
@dkohlbre I have tested this with both CMA-enabled and CMA-disabled settings, with both aligned and non-aligned addresses. Please take a quick look and please let me know if there's any obvious bug.
In order to support CMA-allocated enclave memory, the SM is now aware of how to handle TOR PMP regions. It just finds two sequential empty PMP entries and use them for a TOR region. SM does not make any intelligent decision, such as merging two continuous memory. I think it is okay for now since we mostly run a few enclaves.