On Wed, Oct 30, 2019 at 03:51:38AM -0700, Sean Christopherson wrote: > Mark all EADDed pages as reclaimable, not just those that are measured. > > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> Thanks, I merged this. Resulted also cleaner diff between the driver and reclaimer patch: /* * Insert prior to EADD in case of OOM. EADD modifies MRENCLAVE, i.e. * can't be gracefully unwound, while failure on EADD/EXTEND is limited @@ -374,6 +438,8 @@ static int sgx_encl_add_page(struct sgx_encl *encl, } } + sgx_mark_page_reclaimable(encl_page->epc_page); + out_unlock: mutex_unlock(&encl->lock); up_read(¤t->mm->mmap_sem); /Jarkko