47c45a4df6
Currently, externally created heaps are supposed to be automatically
mapped for VFIO DMA by EAL, however they only do so if, at the time of
heap creation, VFIO is initialized and has at least one device
available. If no devices are available at the time of heap creation (or
if devices were available, but were since hot-unplugged, thus dropping
all VFIO container mappings), then VFIO mapping code would have skipped
over externally allocated heaps.
The fix is two-fold. First, we allow externally allocated memory
segments to be marked as "heap" segments. This allows us to distinguish
between external memory segments that were created via heap API, from
those that were created via rte_extmem_register() API.
Then, we fix the VFIO code to only skip non-heap external segments.
Also, since external heaps are not guaranteed to have valid IOVA
addresses, we will skip those which have invalid IOVA addresses as well.
Fixes:
|
||
---|---|---|
.. | ||
include | ||
eal_alarm.c | ||
eal_cpuflags.c | ||
eal_debug.c | ||
eal_dev.c | ||
eal_hugepage_info.c | ||
eal_interrupts.c | ||
eal_lcore.c | ||
eal_log.c | ||
eal_memalloc.c | ||
eal_memory.c | ||
eal_thread.c | ||
eal_timer.c | ||
eal_vfio_mp_sync.c | ||
eal_vfio.c | ||
eal_vfio.h | ||
eal.c | ||
Makefile | ||
meson.build |