Performance is low on AMD settings. To improve performance set the following in BIOS
iommu=pt
relevant section from the link above:
# vi /etc/default/grub ... GRUB_CMDLINE_LINUX="nofb splash=quiet console=tty0 ... intel_iommu=on ...
For AMD, boot the machine, and append
amd_iommu=on
to the end of theGRUB_CMDLINE_LINUX
line in thegrub
configuration file. ...
# vi /etc/default/grub ... GRUB_CMDLINE_LINUX="nofb splash=quiet console=tty0 ... amd_iommu=on
Note
If intel_iommu=on
or amd_iommu=on
works, you can try replacing them with iommu=pt
or amd_iommu=pt
. The pt
option only enables IOMMU for devices used in passthrough and will provide better host performance. However, the option may not be supported on all hardware. Revert to previous option if the pt
option doesn't work for your host.
If the passthrough fails because the hardware does not support interrupt remapping, you can consider enabling the allow_unsafe_interrupts
option if the virtual machines are trusted. The allow_unsafe_interrupts
is not enabled by default because enabling it potentially exposes the host to MSI attacks from virtual machines. To enable the option:
# vi /etc/modprobe.d options vfio_iommu_type1 allow_unsafe_interrupts=1