Re: [PATCH v2] x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled

2025-03-09 Thread Huang, Kai
On Sun, 2025-03-09 at 18:22 +0100, Vladis Dronov wrote: > A kernel requires X86_FEATURE_SGX_LC to be able to create SGX enclaves. The kernel requires ... > There is quite a number of hardware which has X86_FEATURE_SGX but not > X86_FEATURE_SGX_LC. A kernel running on such a hardware does not crea

[PATCH v2] x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled

2025-03-09 Thread Vladis Dronov
A kernel requires X86_FEATURE_SGX_LC to be able to create SGX enclaves. There is quite a number of hardware which has X86_FEATURE_SGX but not X86_FEATURE_SGX_LC. A kernel running on such a hardware does not create /dev/sgx_enclave file silently. Explicitly warn if X86_FEATURE_SGX_LC is not enabled