Re: [PATCH v3 04/23] KVM: s390: Add gmap_helper_set_unused()

Christoph Schlameuss
2025-11-12T06:25:49Z

On Thu Nov 6, 2025 at 5:10 PM CET, Claudio Imbrenda wrote:
> Add gmap_helper_set_unused() to mark userspace ptes as unused.
>
> Core mm code will use that information to discard unused pages instead
> of attempting to swap them.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
> Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
> Tested-by: Nico Boehr <nrb@linux.ibm.com>

Acked-by: Christoph Schlameuss <schlameuss@linux.ibm.com>

> ---
> arch/s390/include/asm/gmap_helpers.h | 1 +
> arch/s390/mm/gmap_helpers.c | 79 ++++++++++++++++++++++++++++
> 2 files changed, 80 insertions(+)