]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: Add capability to support 2G hugepages
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 9 Jun 2026 15:09:28 +0000 (17:09 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 9 Jun 2026 15:30:57 +0000 (17:30 +0200)
commit103ff3a50e3a50a97e2b123d4dccbc8665eb1552
tree6bdff9694958143882f6b224e6d8104d2d8dbeaa
parent782fec4ab945e1f3b9f0ba383fc00c67641d9767
KVM: s390: Add capability to support 2G hugepages

Add KVM_CAP_S390_HPAGE_2G to signal to userspace that 2G hugepages may
be used to back the guest; restrictions apply similar to 1M hugepages.

Enable the (for now still ignored) GMAP_FLAG_ALLOW_HPAGE_2G flag for
the guest gmap, and propagate / disable it as necessary.

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260609150930.665370-3-imbrenda@linux.ibm.com>
arch/s390/kvm/gmap.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/pv.c
include/uapi/linux/kvm.h