Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mem: fix dynamic hugepage mapping in container
[ upstream commit 9bffc92 ] 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: 582bed1 ("mem: support mapping hugepages at runtime") 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>
- Loading branch information