Passthrough Helper for Manjaro

Run this script using su instead of sudo. The ">" redirects of echo will not work otherwise.

Edit /etc/default/grub

intel_iommu=on (or) amd_iommu=on
rd.driver.pre=vfio-pci
kvm.ignore_msrs=1

Edit /etc/mkinitcpio.conf

MODULES="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
FILES="/usr/bin/vfio-pci-override.sh"
Hooks="... vfio ...."

Tutorial

Sources