Just so we're clear when you do echo "1b21 0612" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/new_id you're creating a new id for the device in vfio-pci right? This number can be totally random?
2016-01-15 10:44 GMT+01:00 Quentin Deldycke <[email protected]>: > To do this dynamically, i use scripts which in sum do: > > Unbinding: > echo 0000:0a:00.0 | sudo tee > /sys/bus/pci/devices/0000:0a:00.0/driver/unbind > It means => on the driver actually used by 0000:0a:00.0, unbind the device > 0000:0a:00.0 > > Binding to vfio: > echo "1b21 0612" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/new_id > echo "0000:0a:00:0" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/bind > > > I use them for: > - nvme device > - sata controller > > You could do same for GPU. But actually, it break dpm, so you have shitty > performance. > It is usefull for me to bind back to host as the nvme device seems to be > lost with vfio-pci and host sleep. (can be recovered with loading nvme) > > -- > Deldycke Quentin > > > On 15 January 2016 at 10:37, thibaut noah <[email protected]> wrote: > >> I actually have no clue about how to unbind the device from xhci driver >> and bind it to vfio. >> It was explain in some tutorials for graphic cards but not for other >> devices so i'm totally lost. >> >> >> 2016-01-15 10:35 GMT+01:00 Quentin Deldycke <[email protected]>: >> >>> There is no difference. >>> >>> lspci to find your card, you bind it to vfio-pci and use virt-manager to >>> add the card. >>> >>> Should work out of the box. Juste take care that this device is unbind >>> from your xhci driver on host. then binded to vfio-pci. >>> >>> Take care of the iommu groups like the graphic card. >>> >>> -- >>> Deldycke Quentin >>> >>> >>> On 15 January 2016 at 10:32, thibaut noah <[email protected]> >>> wrote: >>> >>>> Hello, i'm currently trying to passthrough an usb card controler to >>>> solve my usb issues (like audio glitches on headset and allow plug and >>>> play), problem is it seems that no one did tutorials for this and i'm a bit >>>> lost, only tutorial i found was to passthrough an internal usb controler. >>>> Anybody got some documentation to share? >>>> >>>> _______________________________________________ >>>> vfio-users mailing list >>>> [email protected] >>>> https://www.redhat.com/mailman/listinfo/vfio-users >>>> >>>> >>> >> >
_______________________________________________ vfio-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/vfio-users
