提交 4751a951 编写于 作者: J Joerg Roedel

x86/amd-iommu: Initialize passthrough mode when requested

This patch enables the passthrough mode for AMD IOMMU by
running the initialization function when iommu=pt is passed
on the kernel command line.
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 a1ca331c
...@@ -1242,12 +1242,18 @@ int __init amd_iommu_init(void) ...@@ -1242,12 +1242,18 @@ int __init amd_iommu_init(void)
if (ret) if (ret)
goto free; goto free;
if (iommu_pass_through)
ret = amd_iommu_init_passthrough();
else
ret = amd_iommu_init_dma_ops(); ret = amd_iommu_init_dma_ops();
if (ret) if (ret)
goto free; goto free;
enable_iommus(); enable_iommus();
if (iommu_pass_through)
goto out;
printk(KERN_INFO "AMD IOMMU: device isolation "); printk(KERN_INFO "AMD IOMMU: device isolation ");
if (amd_iommu_isolate) if (amd_iommu_isolate)
printk("enabled\n"); printk("enabled\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册