2fe7aa5e4d
To use virtual address IOVAs, DPDK has to ensure there are absolutely no predispositions to require physical addresses neither now, nor in future. All available buses, including PCI, report whether they require physical addresses. For PCI, the registered drivers may report RTE_PCI_DRV_IOVA_AS_VA to mark a driver as RTE_IOVA_VA compliant. However, this model assumes that all (PCI) drivers are registered on DPDK init, which is not the case in SPDK. With no devices attached, most buses will report RTE_IOVA_DC (don't care) and EAL will default to RTE_IOVA_PA. SPDK needs a hook to report whether it supports RTE_IOVA_VA, and the fake rte_bus provides it. Change-Id: Iba2d904200d1b70140d81943a57b98fd290783f9 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/423491 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>