numam-dpdk/lib/eal
Olivier Matz 9bffc92850 mem: fix dynamic hugepage mapping in container
Since its introduction in 2018, the SIGBUS handler was never registered,
and all related functions were unused.

A SIGBUS can be received by the application when accessing to hugepages
even if mmap() was successful, This happens especially when running
inside containers when there is not enough hugepages. In this case, we
need to recover. A similar scheme can be found in eal_memory.c.

Fixes: 582bed1e1d ("mem: support mapping hugepages at runtime")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
2021-11-05 15:28:55 +01:00
..
arm eal: add a new helper for wait until scheme 2021-11-03 15:50:14 +01:00
common malloc: fix allocation with unknown socket ID 2021-11-05 15:28:49 +01:00
freebsd eal/freebsd: fix IOVA mode selection 2021-11-03 18:32:19 +01:00
include eal: promote non-EAL lcore API as stable 2021-11-04 22:57:58 +01:00
linux mem: fix dynamic hugepage mapping in container 2021-11-05 15:28:55 +01:00
ppc eal/ppc: use compiler builtins for atomics 2021-10-14 16:51:25 +02:00
unix eal: handle compressed firmware 2021-07-07 16:41:53 +02:00
windows eal/windows: fix IOVA mode detection and handling 2021-10-25 20:59:40 +02:00
x86 eal/x86: avoid cast-align warning in memcpy functions 2021-10-25 17:28:12 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map eal: promote non-EAL lcore API as stable 2021-11-04 22:57:58 +01:00