Skip to content

Allow using virtio-user without hugepages

Anatoly Burakov dpdk-dev 3 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesApplied
  2. v25 patches 3 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Clarify doc changes

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5mem: fix error code for segment fd API for external segsdoc/guides/rel_notes/release_19_02.rst lib/librte_eal/common/eal_common_memory.c+18 -01 reply
2/5memalloc: check for memfd support in segment fd APIdoc/guides/rel_notes/release_19_02.rst lib/librte_eal/linuxapp/eal/eal_memalloc.c+34 -81 reply
3/5memalloc: allow setting up segment list fd'slib/librte_eal/bsdapp/eal/eal_memalloc.c lib/librte_eal/common/eal_memalloc.h lib/librte_eal/linuxapp/eal/eal_memalloc.c+36 -01 reply
4/5mem: use memfd for no-huge modedoc/guides/rel_notes/release_19_02.rst lib/librte_eal/linuxapp/eal/eal_memory.c+57 -22 replies
5/5test: add segment fd API testtest/test/test_memory.c+43 -01 reply

Reviews trailers per patch

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

PatchTiwei BieMaxime Coquelin
1/5A-b R-b
2/5A-b R-b
3/5A-b R-b
4/5A-b R-b
5/5A-b R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Allow using virtio-user without hugepages

It is already possible to use both DPDK in general and virtio-user specifically, without hugetlbfs mounts, but currently virtio-user cannot be used without hugepage memory (i.e. with a --no-huge EAL switch) due to the fact that it needs to share memory with the backend.

This patchset uses memfd to create actual files backing anonymous memory. This enabled virtio-user to work not only without hugetlbfs (which was already possible), but without hugepages altogether, which could be useful in Cloud Native scenarios.

v3:
- Clarify doc changes

v2:
- Fixed segment fd list not being initialized
- Added some segment fd API fixes
- Added unit test for segment fd API

Anatoly Burakov (5):
mem: fix error code for segment fd API for external segs
memalloc: check for memfd support in segment fd API
memalloc: allow setting up segment list fd's
mem: use memfd for no-huge mode
test: add segment fd API test

 doc/guides/rel_notes/release_19_02.rst     | 13 +++++
 lib/librte_eal/bsdapp/eal/eal_memalloc.c   |  6 ++
 lib/librte_eal/common/eal_common_memory.c  | 12 ++++
 lib/librte_eal/common/eal_memalloc.h       |  4 ++
 lib/librte_eal/linuxapp/eal/eal_memalloc.c | 66 +++++++++++++++++++---
 lib/librte_eal/linuxapp/eal/eal_memory.c   | 54 +++++++++++++++++-
 test/test/test_memory.c                    | 43 ++++++++++++++
 7 files changed, 188 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.1