13/03/2019 12:12, Shahaf Shuler: > From: Thomas Monjalon <tho...@monjalon.net> > > 10/03/2019 09:28, Shahaf Shuler: > > > For PCI bus devices, the pci driver can expose its own map and unmap > > > functions to be used for the mapping. In case the driver doesn't > > > provide any, the memory will be mapped, if possible, to IOMMU through > > VFIO APIs. > > > > > > Application usage with those APIs is quite simple: > > > * allocate memory > > > * call rte_extmem_register on the memory chunk. > > > * take a device, and query its rte_device. > > > * call the device specific mapping function for this device. > > > > Should we make it documented somewhere? > > The full flow to work w/ external memory is documented at > doc/guides/prog_guide/env_abstraction_layer.rst , Subchapter "Support for > Externally Allocated Memory. > The last commit in series update the right API to use.
OK, then I will move this doc update in this patch.