Re: [PATCH v4 12/18] x86/sgx: Add EPC OOM path to forcefully reclaim EPC

Haitao Huang
2023-09-16T04:19:53Z

On Wed, 13 Sep 2023 10:34:28 -0500, Jarkko Sakkinen <jarkko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
wrote:

>> +++ b/arch/x86/kernel/cpu/sgx/encl.h
>> @@ -39,6 +39,7 @@ enum sgx_encl_flags {
>> SGX_ENCL_DEBUG = BIT(1),
>> SGX_ENCL_CREATED = BIT(2),
>> SGX_ENCL_INITIALIZED = BIT(3),
>> + SGX_ENCL_OOM = BIT(4),
>
> Given how the constants are named before maybe SGX_ENCL_NO_MEMORY would
> be more obvious.

Will do.
Thanks
Haitao