]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390: Enable 1M pages for gmap
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 4 Feb 2026 15:02:56 +0000 (16:02 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 4 Feb 2026 16:00:10 +0000 (17:00 +0100)
commit0fdd5c18a99cc89e829243f9f8561b37b7ebc4fc
treef7a87872e0dd374f172a65435247c133e024ebb4
parent728b0e21b473ad8097185fb85ce2b9ab1ddf4ef7
KVM: s390: Enable 1M pages for gmap

While userspace is allowed to have pages of any size, the new gmap
would always use 4k pages to back the guest.

Enable 1M pages for gmap.

This allows 1M pages to be used to back a guest when userspace is using
1M pages for the corresponding addresses (e.g. THP or hugetlbfs).

Remove the limitation that disallowed having nested guests and
hugepages at the same time.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/gmap.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/pv.c