KVM: s390: Refactor and split some gmap helpers
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 28 May 2025 09:55:01 +0000 (11:55 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 28 May 2025 15:48:04 +0000 (17:48 +0200)
commit200197908dc4afe03a75234478e6a14634a0a788
treea92916b69f484d314826a4c5721ae012e16a68e6
parent7e42ad66fb5d0902b1f8d4d9a8fee898b685046a
KVM: s390: Refactor and split some gmap helpers

Refactor some gmap functions; move the implementation into a separate
file with only helper functions. The new helper functions work on vm
addresses, leaving all gmap logic in the gmap functions, which mostly
become just wrappers.

The whole gmap handling is going to be moved inside KVM soon, but the
helper functions need to touch core mm functions, and thus need to
stay in the core of kernel.

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20250528095502.226213-4-imbrenda@linux.ibm.com
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20250528095502.226213-4-imbrenda@linux.ibm.com>
MAINTAINERS
arch/s390/include/asm/gmap.h
arch/s390/include/asm/gmap_helpers.h [new file with mode: 0644]
arch/s390/kvm/diag.c
arch/s390/kvm/kvm-s390.c
arch/s390/mm/Makefile
arch/s390/mm/gmap.c
arch/s390/mm/gmap_helpers.c [new file with mode: 0644]