Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/kernel/cpu/sgx/ !
Dencl.c756 struct sgx_encl_mm *encl_mm = container_of(mn, struct sgx_encl_mm, mmu_notifier); in sgx_mmu_notifier_release() local
763 spin_lock(&encl_mm->encl->mm_lock); in sgx_mmu_notifier_release()
764 list_for_each_entry(tmp, &encl_mm->encl->mm_list, list) { in sgx_mmu_notifier_release()
765 if (tmp == encl_mm) { in sgx_mmu_notifier_release()
766 list_del_rcu(&encl_mm->list); in sgx_mmu_notifier_release()
770 spin_unlock(&encl_mm->encl->mm_lock); in sgx_mmu_notifier_release()
772 if (tmp == encl_mm) { in sgx_mmu_notifier_release()
773 synchronize_srcu(&encl_mm->encl->srcu); in sgx_mmu_notifier_release()
780 struct sgx_encl_mm *encl_mm = container_of(mn, struct sgx_encl_mm, mmu_notifier); in sgx_mmu_notifier_free() local
783 kref_put(&encl_mm->encl->refcount, sgx_encl_release); in sgx_mmu_notifier_free()
[all …]
Ddriver.c47 struct sgx_encl_mm *encl_mm; in sgx_release() local
59 encl_mm = NULL; in sgx_release()
61 encl_mm = list_first_entry(&encl->mm_list, in sgx_release()
63 list_del_rcu(&encl_mm->list); in sgx_release()
69 if (!encl_mm) in sgx_release()
73 mmu_notifier_unregister(&encl_mm->mmu_notifier, encl_mm->mm); in sgx_release()
74 kfree(encl_mm); in sgx_release()
Dmain.c113 struct sgx_encl_mm *encl_mm; in sgx_reclaimer_age() local
119 list_for_each_entry_rcu(encl_mm, &encl->mm_list, list) { in sgx_reclaimer_age()
120 if (!mmget_not_zero(encl_mm->mm)) in sgx_reclaimer_age()
123 mmap_read_lock(encl_mm->mm); in sgx_reclaimer_age()
124 ret = !sgx_encl_test_and_clear_young(encl_mm->mm, page); in sgx_reclaimer_age()
125 mmap_read_unlock(encl_mm->mm); in sgx_reclaimer_age()
127 mmput_async(encl_mm->mm); in sgx_reclaimer_age()