On Mon, Jul 08, 2019 at 07:57:07AM -0700, Sean Christopherson wrote: > On Fri, Jun 21, 2019 at 12:03:36AM +0300, Jarkko Sakkinen wrote: > > On Wed, Jun 19, 2019 at 03:23:50PM -0700, Sean Christopherson wrote: > > > Using per-vma refcounting to track mm_structs associated with an enclave > > > requires hooking .vm_close(), which in turn prevents the mm from merging > > > vmas (precisely to allow refcounting). > > > > Why having sgx_vma_close() prevents that? I do not understand the > > problem statement. > > vmas that define .vm_close() cannot be merged. Ugh, did not know that :-) Thank you. /Jarkko