With 4.11 linux kernel version iommu_device_sysfs_add is referenced in many IOMMU drivers, so checking /sys/class/iommu is better (more universal) way to programmatically detect enabled IOMMU than parsing dmesg output or searching in /var/log/kern.log or /var/log/messages for driver-specific enable messages: drivers/iommu/amd_iommu_init.c,第1640行 drivers/iommu/arm-smmu-v3.c,第2709行 drivers/iommu/arm-smmu.c,第2163行 drivers/iommu/dmar.c,第1083行 drivers/iommu/exynos-iommu.c,第623行 drivers/iommu/intel-iommu.c,第4878行 drivers/iommu/iommu-sysfs.c,第57行 drivers/iommu/msm_iommu.c,第797行 drivers/iommu/mtk_iommu.c,第581行 drivers/iommu/amd_iommu_init.c, line 1640 drivers/iommu/arm-smmu-v3.c, line 2709 drivers/iommu/arm-smmu.c, line 2163 drivers/iommu/dmar.c, line 1083 drivers/iommu/exynos-iommu.c, line 623 drivers/iommu/intel-iommu.c, line 4878 drivers/iommu/iommu-sysfs.c, line 57 drivers/iommu/msm_iommu.c, line 797 drivers/iommu/mtk_iommu.c, line 581 这篇关于在Linux上检查IOMMU支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-24 20:46