All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] target/s390x: Allow 2G hugepages guest backing
@ 2026-08-05 10:37 Claudio Imbrenda
  2026-08-05 10:37 ` [PATCH v3 1/1] " Claudio Imbrenda
  2026-08-10 18:39 ` [PATCH v3 0/1] " Eric Farman
  0 siblings, 2 replies; 4+ messages in thread
From: Claudio Imbrenda @ 2026-08-05 10:37 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-s390x, borntraeger, frankja, pasic, mhartmay, david, farman,
	mjrosato, richard.henderson, iii, cohuck

Allow mapping guest with 2G hugepages on hosts that support it.
    
Add new helper functions to check whether hpages are in effect, and
which size.

v2->v3:
* Remove dead code introduced in the previous version.
* Factor out the capability enablement and error reporting to avoid
  duplicating code and error messages.
* Optimize the control flow and bring it back in line with the previous
  behaviour regarding page sizes, i.e. assuming that if the page size
  is neither 4K nor 1M, then it must be 2G.

v1->v2:
* Rename the global variable to cap_hpage
* Use different values of cap_hpage to distinguish between hpage sizes
* Add wrappers to test for specific hpage sizes

Claudio Imbrenda (1):
  target/s390x: Allow 2G hugepages guest backing

 target/s390x/diag.c          |  2 +-
 target/s390x/kvm/kvm.c       | 36 +++++++++++++++++-------------------
 target/s390x/kvm/kvm_s390x.h |  2 +-
 target/s390x/kvm/stubs.c     |  2 +-
 4 files changed, 20 insertions(+), 22 deletions(-)

-- 
2.55.0



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

end of thread, other threads:[~2026-08-10 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 10:37 [PATCH v3 0/1] target/s390x: Allow 2G hugepages guest backing Claudio Imbrenda
2026-08-05 10:37 ` [PATCH v3 1/1] " Claudio Imbrenda
2026-08-05 17:17   ` Matthew Rosato
2026-08-10 18:39 ` [PATCH v3 0/1] " Eric Farman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.