Home
last modified time | relevance | path

Searched refs:vepc (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/arch/x86/kernel/cpu/sgx/
Dvirt.c33 static int __sgx_vepc_fault(struct sgx_vepc *vepc, in __sgx_vepc_fault() argument
40 WARN_ON(!mutex_is_locked(&vepc->lock)); in __sgx_vepc_fault()
45 epc_page = xa_load(&vepc->page_array, index); in __sgx_vepc_fault()
49 epc_page = sgx_alloc_epc_page(vepc, false); in __sgx_vepc_fault()
53 ret = xa_err(xa_store(&vepc->page_array, index, epc_page, GFP_KERNEL)); in __sgx_vepc_fault()
68 xa_erase(&vepc->page_array, index); in __sgx_vepc_fault()
77 struct sgx_vepc *vepc = vma->vm_private_data; in sgx_vepc_fault() local
80 mutex_lock(&vepc->lock); in sgx_vepc_fault()
81 ret = __sgx_vepc_fault(vepc, vma, vmf->address); in sgx_vepc_fault()
82 mutex_unlock(&vepc->lock); in sgx_vepc_fault()
[all …]