Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
M1cha opened this issue Jul 7, 2021 · 4 comments
Open

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

M1cha opened this issue Jul 7, 2021 · 4 comments

Comments

@M1cha
Copy link

M1cha commented Jul 7, 2021

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
Copy link
Owner

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
Copy link
Author

M1cha commented Jul 7, 2021

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:

  • 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

@sickcodes
Copy link
Owner

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 sickcodes changed the title VFIO contradiciton in README VFIO Support WIP: (VFIO contradiciton in README) Jul 11, 2021
@sickcodes
Copy link
Owner

@sickcodes sickcodes reopened this Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants