Skip to content

Commit 528a953

Browse files
frankjaahcahca
authored andcommitted
s390/mm: fix huge pte soft dirty copying
If the pmd is soft dirty we must mark the pte as soft dirty (and not dirty). This fixes some cases for guest migration with huge page backings. Cc: <[email protected]> # 4.8 Fixes: bc29b7a ("s390/mm: clean up pte/pmd encoding") Reviewed-by: Christian Borntraeger <[email protected]> Reviewed-by: Gerald Schaefer <[email protected]> Signed-off-by: Janosch Frank <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent dcb7fd8 commit 528a953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/mm/hugetlbpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static inline pte_t __rste_to_pte(unsigned long rste)
117117
_PAGE_YOUNG);
118118
#ifdef CONFIG_MEM_SOFT_DIRTY
119119
pte_val(pte) |= move_set_bit(rste, _SEGMENT_ENTRY_SOFT_DIRTY,
120-
_PAGE_DIRTY);
120+
_PAGE_SOFT_DIRTY);
121121
#endif
122122
pte_val(pte) |= move_set_bit(rste, _SEGMENT_ENTRY_NOEXEC,
123123
_PAGE_NOEXEC);

0 commit comments

Comments
 (0)