lkml.org 
[lkml]   [2023]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 11/18] x86/sgx: store unreclaimable pages in LRU lists
Date
From
On Thu, 28 Sep 2023 04:41:33 -0500, Huang, Kai <kai.huang@intel.com> wrote:

>
>> --- a/arch/x86/kernel/cpu/sgx/encl.c
>> +++ b/arch/x86/kernel/cpu/sgx/encl.c
>> @@ -746,6 +746,7 @@ void sgx_encl_release(struct kref *ref)
>> xa_destroy(&encl->page_array);
>>
>> if (!encl->secs_child_cnt && encl->secs.epc_page) {
>> + sgx_drop_epc_page(encl->secs.epc_page);
>> sgx_encl_free_epc_page(encl->secs.epc_page);
>> encl->secs.epc_page = NULL;
>> }
>
> The "record" of SECS/VA pages should be done together with this. I see
> no
> reason why the "record" and "drop" are separated into different patches.

"record" of SECS/VA pages are done in this patch. Before nothing done in
"record" for them because no tracking LRU lists for them. Now they are
tracked.

Thanks
Haitao

\
 
 \ /
  Last update: 2023-10-03 07:16    [W:1.447 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site