+6
−2
Loading
The current state for the setup script is that the vfio kernel driver will be preferred against the uio_pci_generic driver only if an IOMMU is present in the system. This is checked by looking for any IOMMU groups in sysfs. In case of vfio no-IOMMU driver, there are no IOMMU groups when loading the vfio modules. The IOMMU groups are created when the PCI devices get bound to the vfio-pci driver. Thus, even though the vfio driver is loaded, the setup script will prefer to use the uio_pci_generic kernel driver. This patch changes this behavior. In order to support vfio no-IOMMU mode, the setup script will be checking if the vfio module is loaded with parameter "enable_unsafe_noiommu_mode". In other case, it will be falling back to the uio_pci_generic driver. Change-Id: I1e8317bc4e3d6af4ba8a9e0c51175c9f4190f47b Signed-off-by:Nikos Dragazis <ndragazis@arrikto.com> Reviewed-on: https://review.gerrithub.io/c/441062 Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>