Download the script from here:
https://github.com/pavolelsig/passthr...
Editing virsh:
https://wiki.archlinux.org/index.php/...
Run this script using su instead of sudo. The redirects of echo will not work otherwise.
Add this to grub, /etc/default/grub:
intel_iommu=on (or) amd_iommu=on
rd.driver.pre=vfio-pc
kvm.ignore_msrs=on
Add this to /etc/mkinitcpio.conf:
Modules="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
Files="/usr/bin/vfio-pci-override.sh"
Hooks="... vfio ...."
Don't forget to enable the extensions in BIOS that are needed for GPU passthrough
This guide is based on:
https://wiki.archlinux.org/index.php/...
and
https://forum.manjaro.org/t/virt-mana...