Re: [PATCH] KVM: s390: Fix to clear PTE when discarding a swapped page
From: Claudio Imbrenda
Date: Wed Sep 24 2025 - 08:31:27 EST
On Wed, 24 Sep 2025 14:22:05 +0200
David Hildenbrand <david@xxxxxxxxxx> wrote:
> On 24.09.25 14:17, Gautam Gala wrote:
> > KVM run fails when guests with 'cmm' cpu feature and host are
> > under memory pressure and use swap heavily. This is because
> > npages becomes ENOMEN (out of memory) in hva_to_pfn_slow()
> > which inturn propagates as EFAULT to qemu. Clearing the page
> > table entry when discarding an address that maps to a swap
> > entry resolves the issue.
> >
> > Suggested-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>
> > Signed-off-by: Gautam Gala <ggala@xxxxxxxxxxxxx>
> > ---
>
> Sounds bad,
>
> I assume we want Fixes: and CC: stable, right?
yes; I'll add those when picking up
Reviewed-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>