2014-05-19 16:51, Anatoly Burakov:
> This makes it possible to run DPDK without hugepage memory when VFIO
> is used, as VFIO uses virtual addresses to set up DMA mappings.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>

> -             addr = malloc(internal_config.memory);
> +             addr = mmap(NULL, internal_config.memory, PROT_READ | 
> PROT_WRITE,
> +                             MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);

Please, could you add a comment to explain why using mmap helps?

-- 
Thomas

Reply via email to