+32
−4
+4
−0
Loading
Since commit a36bc251 ("env_dpdk: Automatically map PCI BARs into VFIO") the physical address of the BAR returned by spdk_pci_device_map_bar() can be either an actual physical address or a virtual one (if IOMMU is enabled). Since the VMD driver always needs an actual physical address to fill out the base/limit registers and the BARs of the devices behind the VMD, we read config space to get the correct address, regardless of IOVA configuration. Fixes #3117. Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I16bc221a9621bb1a08950697ba4537ae2274277f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20187 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>