On Wed, 2023-10-11 at 01:14 +0000, Huang, Kai wrote: > On Tue, 2023-10-10 at 11:49 -0500, Haitao Huang wrote: > > > > > > This patch adds SGX_ENCL_NO_MEMORY. I guess we can use it for virtual > > > EPC too? > > > > > > > That flag is set for enclaves, do you mean we set similar flag in vepc > > struct? > > Yes. I missed the "ENCL" part but only noted the "NO_MEMORY" part, so I guess it should not be used directly for vEPC. So if it is needed, SGX_VEPC_NO_MEMORY, or a simple 'bool dead' or similar in 'struct sgx_vepc' is more suitable. As I said I was fighting with fever and headache last week :-)