[vfio-users] passthrough usb controler pci-e card ?

Quentin Deldycke quentindeldycke at gmail.com
Fri Jan 15 09:44:19 UTC 2016


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 <thibaut.noah at gmail.com> 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 <quentindeldycke at gmail.com>:
>
>> 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 <thibaut.noah at gmail.com> 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
>>> vfio-users at redhat.com
>>> https://www.redhat.com/mailman/listinfo/vfio-users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160115/ec9deb67/attachment.htm>


More information about the vfio-users mailing list