lkml.org 
[lkml]   [2023]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v5 12/18] x86/sgx: Add EPC OOM path to forcefully reclaim EPC
    Date
    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 :-)
    \
     
     \ /
      Last update: 2023-10-16 13:03    [W:4.162 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site