summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2026-05-19 17:01:14 +0200
committerClaudio Imbrenda <imbrenda@linux.ibm.com>2026-05-22 11:25:11 +0200
commit9029496abfae3c208336855ae6f3e1f5f881ef76 (patch)
tree024d26f661f5a35801e01a0aac191607964cb43f /include
parenta488e753de5853bec2e2e4d0c5a73f25d464bd2e (diff)
KVM: s390: Properly reset zero bit in PGSTE
In case of memory pressure, it's possible that a guest page gets freed and then almost immediately reused by the guest. If CMMA is enabled, _essa_clear_cbrl() will discard all pages that are either unused or zero. If a discarded page is reused before _essa_clear_cbrl() is called, and the pgste.zero bit is not cleared, the page will be discarded despite not being unused. When calling _gmap_ptep_xchg(), always clear the pgste.zero bit. This prevents the page from being accidentally discarded when not unused. Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Fixes: a2c17f9270cc ("KVM: s390: New gmap code") Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions