Home
last modified time | relevance | path

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

/openbmc/linux/mm/
H A Duserfaultfd.c31 struct vm_area_struct *dst_vma; in find_dst_vma() local
33 dst_vma = find_vma(dst_mm, dst_start); in find_dst_vma()
34 if (!range_in_vma(dst_vma, dst_start, dst_start + len)) in find_dst_vma()
42 if (!dst_vma->vm_userfaultfd_ctx.ctx) in find_dst_vma()
45 return dst_vma; in find_dst_vma()
49 static bool mfill_file_over_size(struct vm_area_struct *dst_vma, in mfill_file_over_size() argument
55 if (!dst_vma->vm_file) in mfill_file_over_size()
58 inode = dst_vma->vm_file->f_inode; in mfill_file_over_size()
59 offset = linear_page_index(dst_vma, dst_addr); in mfill_file_over_size()
71 struct vm_area_struct *dst_vma, in mfill_atomic_install_pte() argument
[all …]
H A Dmemory.c767 pte_t *dst_pte, pte_t *src_pte, struct vm_area_struct *dst_vma, in copy_nonpresent_pte() argument
770 unsigned long vm_flags = dst_vma->vm_flags; in copy_nonpresent_pte()
860 pte_marker marker = copy_pte_marker(entry, dst_vma); in copy_nonpresent_pte()
867 if (!userfaultfd_wp(dst_vma)) in copy_nonpresent_pte()
886 copy_present_page(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma, in copy_present_page() argument
904 folio_add_new_anon_rmap(new_folio, dst_vma, addr); in copy_present_page()
905 folio_add_lru_vma(new_folio, dst_vma); in copy_present_page()
909 pte = mk_pte(&new_folio->page, dst_vma->vm_page_prot); in copy_present_page()
910 pte = maybe_mkwrite(pte_mkdirty(pte), dst_vma); in copy_present_page()
911 if (userfaultfd_pte_wp(dst_vma, ptep_get(src_pte))) in copy_present_page()
[all …]
H A Dhugetlb.c5031 struct vm_area_struct *dst_vma, in copy_hugetlb_page_range() argument
5070 dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz); in copy_hugetlb_page_range()
5100 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
5119 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
5124 pte_to_swp_entry(entry), dst_vma); in copy_hugetlb_page_range()
5154 new_folio = alloc_hugetlb_folio(dst_vma, addr, 1); in copy_hugetlb_page_range()
5162 addr, dst_vma); in copy_hugetlb_page_range()
5175 restore_reserve_on_error(h, dst_vma, addr, in copy_hugetlb_page_range()
5181 hugetlb_install_folio(dst_vma, dst_pte, addr, in copy_hugetlb_page_range()
5200 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
[all …]
H A Dhuge_memory.c1057 struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma) in copy_huge_pmd() argument
1066 if (!vma_is_anonymous(dst_vma)) in copy_huge_pmd()
1098 if (!userfaultfd_wp(dst_vma)) in copy_huge_pmd()
1143 if (!userfaultfd_wp(dst_vma)) in copy_huge_pmd()
H A Dshmem.c2571 struct vm_area_struct *dst_vma, in shmem_mfill_atomic_pte() argument
2577 struct inode *inode = file_inode(dst_vma->vm_file); in shmem_mfill_atomic_pte()
2581 pgoff_t pgoff = linear_page_index(dst_vma, dst_addr); in shmem_mfill_atomic_pte()
2660 gfp & GFP_RECLAIM_MASK, dst_vma->vm_mm); in shmem_mfill_atomic_pte()
2664 ret = mfill_atomic_install_pte(dst_pmd, dst_vma, dst_addr, in shmem_mfill_atomic_pte()
/openbmc/linux/include/linux/
H A Dshmem_fs.h189 struct vm_area_struct *dst_vma,
195 #define shmem_mfill_atomic_pte(dst_pmd, dst_vma, dst_addr, \ argument
H A Dmm_inline.h538 swp_entry_t entry, struct vm_area_struct *dst_vma) in copy_pte_marker() argument
545 if ((srcm & PTE_MARKER_UFFD_WP) && userfaultfd_wp(dst_vma)) in copy_pte_marker()
H A Dhugetlb.h154 struct vm_area_struct *dst_vma,
340 struct vm_area_struct *dst_vma, in copy_hugetlb_page_range() argument
426 struct vm_area_struct *dst_vma, in hugetlb_mfill_atomic_pte() argument
H A Duserfaultfd_k.h73 struct vm_area_struct *dst_vma,
H A Dhuge_mm.h13 struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);
H A Dmm.h2357 copy_page_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);