Re: [PATCH for_v24] x86/sgx: Mark all regular and TCS pages as reclaimable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(&current->mm->mmap_sem);

/Jarkko



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux