Re: [PATCH v6] vfio: Support for no-IOMMU mode
From: Thomas Monjalon <hidden>
Date: 2016-01-28 16:57:10
2016-01-28 11:57, Anatoly Burakov:
This commit is adding a generic mechanism to support multiple IOMMU types. For now, it's only type 1 (x86 IOMMU) and no-IOMMU (a special VFIO mode that doesn't use IOMMU at all), but it's easily extended by adding necessary definitions to eal_vfio.h, and DMA mapping functions to eal_pci_vfio.c. Since type 1 IOMMU module is no longer necessary to have VFIO, we fix the module check to check for vfio-pci instead. It's not ideal and triggers VFIO checks more often (and thus produces more error output, which was the reason behind the module check in the first place), so we compensate for that by providing more verbose logging, indicating whether VFIO initialization has succeeded or failed. Signed-off-by: Anatoly Burakov <redacted> Signed-off-by: Santosh Shukla <redacted> Tested-by: Santosh Shukla <redacted>
Applied, thanks