Skip to content

Commit

Permalink
mm/migrate_device: Support COW PTE
Browse files Browse the repository at this point in the history
Break COW PTE before collecting the pages in COW-ed PTE.

Signed-off-by: Chih-En Lin <shiyn.lin@gmail.com>
  • Loading branch information
linD026 authored and intel-lab-lkp committed Dec 20, 2022
1 parent 5cd1951 commit 77cd284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/migrate_device.c
Expand Up @@ -106,6 +106,8 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp,
}
}

if (!break_cow_pte_range(vma, pmdp, start, end))
return migrate_vma_collect_skip(start, end, walk);
if (unlikely(pmd_bad(*pmdp)))
return migrate_vma_collect_skip(start, end, walk);

Expand Down

0 comments on commit 77cd284

Please sign in to comment.