[dpdk-stable] [dpdk-dev] [PATCH] memory: do not use base-virtaddr in secondary processes
Thomas Monjalon
thomas at monjalon.net
Fri Jul 13 00:08:33 CEST 2018
19/06/2018 11:21, Burakov, Anatoly:
> On 18-Jun-18 8:53 PM, Dariusz Stojaczyk wrote:
> > Since secondary process' address space is highly dictated
> > by the primary process' mappings, it doesn't make much
> > sense to use base-virtaddr for secondary processes.
> >
> > This patch is intended to fix PCI resource mapping
> > in secondary processes using the same base-virtaddr
> > as their primary processes. PCI uses the end of the hugepage
> > memory area to map all resources. [pci_find_max_end_va()]
> > It works for primary processes, but can't be mapped 1:1
> > by secondary ones, as the same addresses are currently always
> > occupied by shadow memseg lists, which were created with
> > eal_get_virtual_area(NULL, ...).
> >
> > ```
> > PRIMARY PROCESS
> > 0x6e00e00000 388K rw-s- fbarray_memseg-2048k-1-3
> > 0x6e01000000 16777216K r---- [ anon ]
> > 0x7201000000 16K rw-s- resource0
> >
> > SECONDARY PROCESS
> > 0x6e00e00000 388K rw-s- fbarray_memseg-2048k-1-3
> > 0x6e01000000 16777216K r---- [ anon ]
> > 0x7201000000 4K rw-s- fbarray_memseg-1048576k-0-0_203213
> > ```
> >
> > Fixes: 524e43c2ad9a ("mem: prepare memseg lists for multiprocess sync")
> > Cc: anatoly.burakov at intel.com
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk at intel.com>
> > ---
>
> Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
Applied, thanks
More information about the stable
mailing list