Skip to content

Commit 27072b8

Browse files
author
Claudio Imbrenda
committed
KVM: s390/mm: Properly reset no-dat
When the CMMA state needs to be reset, the no-dat bit also needs to be reset. Failure to do so could cause issues in the guest, since the guest expects the bit to be cleared after a reset. Cc: <[email protected]> Reviewed-by: Nico Boehr <[email protected]> Message-ID: <[email protected]> Signed-off-by: Claudio Imbrenda <[email protected]>
1 parent 80aea01 commit 27072b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/mm/pgtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void ptep_zap_unused(struct mm_struct *mm, unsigned long addr,
756756
pte_clear(mm, addr, ptep);
757757
}
758758
if (reset)
759-
pgste_val(pgste) &= ~_PGSTE_GPS_USAGE_MASK;
759+
pgste_val(pgste) &= ~(_PGSTE_GPS_USAGE_MASK | _PGSTE_GPS_NODAT);
760760
pgste_set_unlock(ptep, pgste);
761761
preempt_enable();
762762
}

0 commit comments

Comments
 (0)