mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] KVM: s390: Add support for 2G hugepages
@ 2026-06-09 15:09 Claudio Imbrenda
  2026-06-09 15:09 ` [PATCH v2 1/4] KVM: s390: Add module parameter to fence " Claudio Imbrenda
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Claudio Imbrenda @ 2026-06-09 15:09 UTC (permalink / raw)
  To: linux-kernel
  Cc: kvm, linux-s390, borntraeger, frankja, david, seiden, nrb,
	schlameuss, gra

Add support for 2G hugepages.

In theory, since kernel 7.0, userspace could already use 2G hugepages
to back guest memory, but KVM would use 4k or 1M pages in gmap to
actually map the guest.

This series allows KVM on s390 to actually use 2G hugepages in gmap to
map guest memory that is backed by 2G hugepages in userspace.

Nested guests remain possible.

v1->v2:
* Fix possible race between clearing the GMAP_FLAG_ALLOW_HPAGE_2G flag
  and gmap_split_huge_pages().
* Add documentation for the KVM_CAP_S390_HPAGE_2G capability.


Claudio Imbrenda (4):
  KVM: s390: Add module parameter to fence 2G hugepages
  KVM: s390: Add capability to support 2G hugepages
  KVM: s390: Allow for 2G hugepages
  KVM: s390: Document the KVM_CAP_S390_HPAGE_2G capability

 Documentation/virt/kvm/api.rst | 15 ++++++++++++++
 arch/s390/kvm/gmap.c           | 24 ++++++++++++++++++++-
 arch/s390/kvm/kvm-s390.c       | 38 +++++++++++++++++++++++++++++++++-
 arch/s390/kvm/pv.c             |  5 ++++-
 include/uapi/linux/kvm.h       |  1 +
 5 files changed, 80 insertions(+), 3 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-10  8:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 15:09 [PATCH v2 0/4] KVM: s390: Add support for 2G hugepages Claudio Imbrenda
2026-06-09 15:09 ` [PATCH v2 1/4] KVM: s390: Add module parameter to fence " Claudio Imbrenda
2026-06-10  8:34   ` Janosch Frank
2026-06-09 15:09 ` [PATCH v2 2/4] KVM: s390: Add capability to support " Claudio Imbrenda
2026-06-09 15:09 ` [PATCH v2 3/4] KVM: s390: Allow for " Claudio Imbrenda
2026-06-09 15:09 ` [PATCH v2 4/4] KVM: s390: Document the KVM_CAP_S390_HPAGE_2G capability Claudio Imbrenda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®