aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Imbrenda <[email protected]>2023-11-09 13:36:24 +0100
committerClaudio Imbrenda <[email protected]>2023-11-14 18:56:46 +0100
commit27072b8e18a73ffeffb1c140939023915a35134b (patch)
treea07f3492cf93e6892425305c8851bf45d3a6997b
parent80aea01c48971a1fffc0252d036995572d84950d (diff)
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]>
-rw-r--r--arch/s390/mm/pgtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
index 3bd2ab2a9a34..5cb92941540b 100644
--- a/arch/s390/mm/pgtable.c
+++ b/arch/s390/mm/pgtable.c
@@ -756,7 +756,7 @@ void ptep_zap_unused(struct mm_struct *mm, unsigned long addr,
pte_clear(mm, addr, ptep);
}
if (reset)
- pgste_val(pgste) &= ~_PGSTE_GPS_USAGE_MASK;
+ pgste_val(pgste) &= ~(_PGSTE_GPS_USAGE_MASK | _PGSTE_GPS_NODAT);
pgste_set_unlock(ptep, pgste);
preempt_enable();
}