linux/arch/x86/kernel/cpu/sgx
Haitao Huang 81fa6fd13b x86/sgx: Handle VA page allocation failure for EAUG on PF.
VM_FAULT_NOPAGE is expected behaviour for -EBUSY failure path, when
augmenting a page, as this means that the reclaimer thread has been
triggered, and the intention is just to round-trip in ring-3, and
retry with a new page fault.

Fixes: 5a90d2c3f5 ("x86/sgx: Support adding of pages to an initialized enclave")
Signed-off-by: Haitao Huang <haitao.huang@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20220906000221.34286-3-jarkko@kernel.org
2022-09-08 13:28:31 -07:00
..
Makefile x86/sgx: Introduce virtual EPC for use by KVM guests 2021-04-06 09:43:17 +02:00
driver.c x86/sgx: Move provisioning device creation out of SGX driver 2021-04-06 19:18:46 +02:00
driver.h x86/sgx: Add SGX_IOC_ENCLAVE_PROVISION 2020-11-18 18:02:50 +01:00
encl.c x86/sgx: Handle VA page allocation failure for EAUG on PF. 2022-09-08 13:28:31 -07:00
encl.h - SGX2 ISA support which makes enclave memory management much more 2022-08-05 10:47:40 -07:00
encls.h x86/sgx: Add wrapper for SGX2 EAUG function 2022-07-07 10:13:01 -07:00
ioctl.c x86/sgx: Free up EPC pages directly to support large page ranges 2022-07-07 10:13:03 -07:00
main.c x86/sgx: Do not fail on incomplete sanitization on premature stop of ksgxd 2022-09-08 13:27:44 -07:00
sgx.h x86/sgx: Free up EPC pages directly to support large page ranges 2022-07-07 10:13:03 -07:00
virt.c x86/sgx/virt: implement SGX_IOC_VEPC_REMOVE ioctl 2021-10-22 08:32:12 -07:00