Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 975 Bytes

iommu_grub_config.rst

File metadata and controls

25 lines (15 loc) · 975 Bytes

IOMMU内核启动grub配置

intel_vt-d_startupovmf 介绍了如何配置IOMMU虚拟化,其中有一个重要步骤是启用内核IOMMU。这个步骤需要配置内核参数,也就是通过配置 grub 实现参数修改。由于Intel和AMD的配置参数略有不同,本文做一个简单梳理。

Intel

Intel处理器使用 IOMMU 只需要激活:

intel_iommu=on

如果要使用 sr-iov ,为了最佳性能,应该再添加一个 pass-through 参数:

iommu=pt

当激活了 pass-through 模式,网卡就不需要使用DMA转换到内存,这就提高了处理性能。所以,对于hypervisor性能,这个 iommu=pt 参数是非常必要的

参考