lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 11/14] mm/migrate_device: Support COW PTE
    Date
    Break COW PTE before collecting the pages in COW-ed PTE.

    Signed-off-by: Chih-En Lin <shiyn.lin@gmail.com>
    ---
    mm/migrate_device.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/mm/migrate_device.c b/mm/migrate_device.c
    index 721b2365dbca..2930e591e8fc 100644
    --- a/mm/migrate_device.c
    +++ b/mm/migrate_device.c
    @@ -106,6 +106,8 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp,
    }
    }

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

    --
    2.34.1
    \
     
     \ /
      Last update: 2023-03-27 00:12    [W:3.543 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site