diff options
author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2023-11-09 13:36:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-13 18:45:34 +0100 |
commit | bb356cc6615c8d924f4ac8ef1bc9642d861a584b (patch) | |
tree | a2071a66acbe71445b9cbcb5a1f744cafbc62630 /arch/s390 | |
parent | 6d9cbae4c032451d41c262cbf8b90018af0dbda0 (diff) | |
download | linux-stable-bb356cc6615c8d924f4ac8ef1bc9642d861a584b.tar.gz linux-stable-bb356cc6615c8d924f4ac8ef1bc9642d861a584b.tar.bz2 linux-stable-bb356cc6615c8d924f4ac8ef1bc9642d861a584b.zip |
KVM: s390/mm: Properly reset no-dat
commit 27072b8e18a73ffeffb1c140939023915a35134b 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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/mm/pgtable.c | 2 |
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(); } |