At SGXv1, there is a EPC limitation 128MB.
is there a plan for extending the maximum size of EPC at SGXv2?
I know that SGXv2 will be releasing with Dynamic memory allocation feature. Does it mean that the maximum size of EPC is fixed and when the memory is allocated more than the maximum size, the page will be swapped?
In SGX2 there is Statically Allocated memory and dynamically allocated memory. The size of the statically allocated memory is fixed and the value is not known as of now. SGX2 Extensions give software the ability to dynamically add and remove pages from an enclave and to manage the attributes of enclave pages.
In Section 4 of this document you can read how the dynamic memory management is done--http://caslab.csl.yale.edu/workshops/hasp2016/HASP16-17.pdf