Searched refs:vepc (Results 1 – 1 of 1) sorted by relevance
33 static int __sgx_vepc_fault(struct sgx_vepc *vepc, in __sgx_vepc_fault() argument40 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() local80 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 …]