Skip to content

Fix hugepages with memfd on s390x and clean up related code

Thomas Huth qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- Use qemu_ram_pagesize(memdev->mr.ram_block) instead of adding additional code for the memfd object
- Added the two clean-up patches on top to simplify the code

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3backends/hostmem: Fix support of memory-backend-memfd in qemu_maxrampagesize()backends/hostmem.c+2 -122 replies
2/3softmmu/physmem: Remove the ifdef __linux__ around the pagesize functionssoftmmu/physmem.c+0 -172 replies
3/3util/mmap-alloc: Remove qemu_mempath_getpagesize()include/qemu/mmap-alloc.h util/mmap-alloc.c+0 -332 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandClaudio Imbrenda
1/3R-b R-b
2/3A-b R-b
3/3R-b R-b

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/3] Fix hugepages with memfd on s390x and clean up related code

The first patch fixes the problem that hugepages cannot be used via the "memory-backend-memfd" object on s390x. The second and third patch are some clean-ups that can be done after generalizing the code in the first patch.

v2:
- Use qemu_ram_pagesize(memdev->mr.ram_block) instead of adding additional code for the memfd object
- Added the two clean-up patches on top to simplify the code

Thomas Huth (3):
backends/hostmem: Fix support of memory-backend-memfd in
qemu_maxrampagesize()
softmmu/physmem: Remove the ifdef __linux__ around the pagesize
functions
util/mmap-alloc: Remove qemu_mempath_getpagesize()

 include/qemu/mmap-alloc.h |  2 --
 backends/hostmem.c        | 14 ++------------
 softmmu/physmem.c         | 17 -----------------
 util/mmap-alloc.c         | 31 -------------------------------
 4 files changed, 2 insertions(+), 62 deletions(-)
Signature · 1 line
2.31.1