dock-droid icon indicating copy to clipboard operation
dock-droid copied to clipboard

VFIO Support WIP: (VFIO contradiciton in README)

Open M1cha opened this issue 4 years ago • 4 comments

just a nitpick, but the sample commands in https://github.com/sickcodes/dock-droid/blob/5a3ed6502f8fe384d462669dc83d80e317d81daf/README.md#vfio-passthrough are for virtio/usb forwarding, not vfio forwarding. vfio forwarding would look like this:

-device vfio-pci,host=04:00.0

M1cha avatar Jul 07 '21 05:07 M1cha

Will adjust, thanks for pointing that out.

I keep trying vfio passthru and it keeps never working 😂 laptop lyf, no USB ports after I passthru the group, even using Linux Zen plus acs override 😔 need to get a desktop or a usb graphics card.

sickcodes avatar Jul 07 '21 07:07 sickcodes

the online documentation for that is very bad and mostly outdated(due to kernel and qemu updates). But here's some references that helped me set it up several times:

  • https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Plain_QEMU_without_libvirt (the whole page + the section I linked)
  • https://www.kernel.org/doc/Documentation/vfio.txt

the general summary:

  • make sure your hardware supports VT-d/AMD-VI and UEFI and linux have it enabled
  • figure out which devices are in the same iommu group
  • detach all drivers from those devices
  • attach vfio-pci to those devices

M1cha avatar Jul 07 '21 08:07 M1cha

I ran Linux-Zen

Added boot arg:

pcie_acs_override=downstream,multifunction

Got 27 VFIO groups, usually get 16, can't pass through the NVIDIA, takes over every peripheral, even the touchpad.

Will try again at some stage

sickcodes avatar Jul 09 '21 01:07 sickcodes

Interesting usage: https://jellyfin.org/docs/general/administration/hardware-acceleration.html

sickcodes avatar Jul 11 '21 17:07 sickcodes