2016-07-15 18:42, Thomas Monjalon:
> 2016-07-15 17:32, Thomas Monjalon:
> > 2016-07-14 17:15, Yong Wang:
> > > - void *second_addr = RTE_PTR_ADD(bar_addr,
> > > memreg[1].offset);
> > > + void *second_addr = RTE_PTR_ADD(bar_addr,
> > > +
2016-07-15 17:32, Thomas Monjalon:
> 2016-07-14 17:15, Yong Wang:
> > - void *second_addr = RTE_PTR_ADD(bar_addr,
> > memreg[1].offset);
> > + void *second_addr = RTE_PTR_ADD(bar_addr,
> > +
2016-07-14 17:15, Yong Wang:
> - void *second_addr = RTE_PTR_ADD(bar_addr,
> memreg[1].offset);
> + void *second_addr = RTE_PTR_ADD(bar_addr,
> +
> memreg[1].offset - reg.offset);
> The offset of the 2nd mmap() when mapping the region after msix_bar
> needs to take region address into consideration as mmap() takes address
> that is resource-relative instead of bar-relative. This is exposed when
> binding vmxnet3 to vfio-pci.
>
> Fixes: 90a1633b2347 ("eal/linux: allow to ma
The offset of the 2nd mmap() when mapping the region after msix_bar
needs to take region address into consideration as mmap() takes
address that is resource-relative instead of bar-relative. This is
exposed when binding vmxnet3 to vfio-pci.
Fixes: 90a1633b2347 ("eal/linux: allow to map BARs with
5 matches
Mail list logo