numam-dpdk/lib/librte_eal
Anatoly Burakov c75f535ac5 mem: use memfd for no-huge mode
When running in no-huge mode, we anonymously allocate our memory.
While this works for regular NICs and vdev's, it's not suitable
for memory sharing scenarios such as virtio with vhost_user
backend.

To fix this, allocate no-huge memory using memfd, and register
it with memalloc just like any other memseg fd. This will enable
using rte_memseg_get_fd() API with --no-huge EAL flag.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-12-20 22:58:25 +01:00
..
bsdapp mem: allow setting up segment list fd 2018-12-20 22:55:56 +01:00
common mem: allow setting up segment list fd 2018-12-20 22:55:56 +01:00
linuxapp mem: use memfd for no-huge mode 2018-12-20 22:58:25 +01:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
rte_eal_version.map mem: allow usage of non-heap external memory in multiprocess 2018-12-20 18:14:55 +01:00