Re: [PATCH 2/2] mm/migrate: preserve soft dirty in remove_migration_pte()

2020-08-31 Thread Christoph Hellwig
On Mon, Aug 31, 2020 at 02:22:22PM -0700, Ralph Campbell wrote: > The code to remove a migration PTE and replace it with a device private > PTE was not copying the soft dirty bit from the migration entry. > This could lead to page contents not being marked dirty when faulting > the page back from

[PATCH 2/2] mm/migrate: preserve soft dirty in remove_migration_pte()

2020-08-31 Thread Ralph Campbell
The code to remove a migration PTE and replace it with a device private PTE was not copying the soft dirty bit from the migration entry. This could lead to page contents not being marked dirty when faulting the page back from device private memory. Signed-off-by: Ralph Campbell --- mm/migrate.c