sickcodes / dock-droid

Docker Android - Run QEMU Android in a Docker! X11 Forwarding! CI/CD for Android!
https://hub.docker.com/r/sickcodes/dock-droid
GNU General Public License v3.0
1.09k stars 83 forks source link

VFIO Support WIP: (VFIO contradiciton in README) #2

Open M1cha opened 3 years ago

M1cha commented 3 years ago

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
sickcodes commented 3 years ago

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.

M1cha commented 3 years ago

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:

the general summary:

sickcodes commented 3 years ago

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 commented 3 years ago

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