[dpdk-dev] [PATCH v8] eal: map PCI memory resources after hugepages

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Nov 25 18:17:46 CET 2014


> > Multi-process DPDK application must mmap hugepages and PCI resources
> > into the same virtual address space. By default the virtual addresses
> > are chosen by the primary process automatically when calling the mmap.
> > But sometimes the chosen virtual addresses aren't usable in secondary
> > process - for example, secondary process is linked with more libraries
> > than primary process, and the library occupies the same address space
> > that the primary process has requested for PCI mappings.
> > 
> > This patch makes EAL try and map PCI BARs right after the hugepages
> > (instead of location chosen by mmap) in virtual memory, so that PCI BARs
> > have less chance of ending up in random places in virtual memory.
> > 
> > Signed-off-by: Liang Xu <liang.xu at cinfotech.cn>
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> 
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied

Thanks
-- 
Thomas


More information about the dev mailing list