Skip to content

Commit 6d6314c

Browse files
Claudio Imbrendagregkh
authored andcommitted
KVM: s390/mm: Properly reset no-dat
commit 27072b8 upstream. 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: <stable@vger.kernel.org> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Message-ID: <20231109123624.37314-1-imbrenda@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent be29747 commit 6d6314c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/mm/pgtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ void ptep_zap_unused(struct mm_struct *mm, unsigned long addr,
731731
pte_clear(mm, addr, ptep);
732732
}
733733
if (reset)
734-
pgste_val(pgste) &= ~_PGSTE_GPS_USAGE_MASK;
734+
pgste_val(pgste) &= ~(_PGSTE_GPS_USAGE_MASK | _PGSTE_GPS_NODAT);
735735
pgste_set_unlock(ptep, pgste);
736736
preempt_enable();
737737
}

0 commit comments

Comments
 (0)