Error 31 - VFIO Nvidia passthrough not working

Really trying to move past this project.

I’m on kernel 5.5/ubuntu 19.10 with KVM 4.0.

Confirmed that VFIO drivers are loaded, and the bios screen shows up on the 1070 video card when I boot the vm. But I’m still stuck at error 43. I’m really trying to move past this so I can enjoy this project.

Hardware is

  • Ryzen 2700
  • Asus ROG Gaming x470 -f (or something like that)
  • 32 GB of 3200 mhz memory
  • Slot 1 - Vega 56
  • Slot 2 - Nvidia 1070

DMesg output - https://clbin.com/7tsKR

Current XML Config - https://pastebin.com/bc6RExEt

  • Grub - GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash amd_iommu=on iommu=pt kvm_amd.ntp=1 kvm_amd.avic=1 vfio_pci.ids=10de:1b81,10de:10f0”

/etc/modprobe.d/vfio.conf

  • softdep nouveau pre: vfio vfio_pci
  • softdep nvidia pre: vfio vfio_pci
  • softdep nvidia* pre: vfio-pci
  • options vfio-pci ids=10de:1b81,10de:10f0

I’m not sure what information I can provide to get this working. But I really want this to work properly. Any help is greatly appreciated.

I’m on mobile, looked through the pastebin of the xml, but didn’t see the adjustments from the arch wiki, or Wendells guide there
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#"Error_43:_Driver_failed_to_load"_on_Nvidia_GPUs_passed_to_Windows_VMs

For vendor id

Also you can edit the category to be vfio, and the title to code 43, or the body to error 31