Enable IOMMU, SR-IOV, VT-d, AMD-Vi
Add intel_iommu=on or amd_iommu=on to grub
load following in /etc/modules vfio vfio_iommu_type1 vfio_pci
After changing anything modules related, you need to refresh your initramfs. On Proxmox VE this can be done by executing:
update-initramfs -u -k all¶
To check if the modules are being loaded, the output of
lsmod | grep vfio¶
set vm type to q35
No ballooning -- doesn't work well with IOMMU -