[PATCH 0/3] Minor improvements to sgx_init()

From: Kai Huang
Date: Mon Oct 03 2022 - 18:04:48 EST


Hi,

Patch 1 and 2 are the improvements around EPC page reclaimer (as I
mentioned to do couple of weeks ago). Patch 3 is the RESEND of a
previous patch to add a missing error check.

This series is based on latest Linus's upstream tree, but not
tip/x86/sgx, as the latter doesn't have 2 patches that Dave sent to
Linus for 6.0-rc8.

Kai Huang (3):
x86/sgx: Start the ksgxd() at the end of sgx_init()
x86/sgx: Only run the reclaimer when the native SGX driver is enabled
x86/sgx: Add xa_store_range() return value check in
sgx_setup_epc_section()

arch/x86/kernel/cpu/sgx/driver.c | 13 ++++---
arch/x86/kernel/cpu/sgx/driver.h | 1 +
arch/x86/kernel/cpu/sgx/main.c | 58 +++++++++++++++++++-------------
3 files changed, 44 insertions(+), 28 deletions(-)


base-commit: f3dfe925f9548a4337883926db542ccf4ca55fe1
--
2.37.1