Skip to content

KVM: s390: Add support for 2G hugepages

Claudio Imbrenda kvm linux-s390 lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: s390: Add module parameter to fence 2G hugepagesarch/s390/kvm/kvm-s390.c+11 -11 reply
2/4KVM: s390: Add capability to support 2G hugepagesarch/s390/kvm/gmap.c arch/s390/kvm/kvm-s390.c arch/s390/kvm/pv.c +1 more+36 -10 replies
3/4KVM: s390: Allow for 2G hugepagesarch/s390/kvm/gmap.c+18 -10 replies
4/4KVM: s390: Document the KVM_CAP_S390_HPAGE_2G capabilityDocumentation/virt/kvm/api.rst+15 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchSteffen Eiden
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] KVM: s390: Add support for 2G hugepages

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(-)
Signature · 1 line
2.54.0