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? > +/** > + * Device level DMA map function. > + * After a successful call, the memory segment will be mapped to the > + * given device. > + * > + * @note: Memory must be registered in advance using rte_extmem_* APIs. Could we make more explicit that this function is part of the "external memory API"?