I'm trying to bind a specific USB3.0 controller to the vfio driver and I am not sure how to go about it. I know I can do something like:
Code:
# echo 1b6f 7023 > /sys/bus/pci/drivers/vfio-pci/new_id
and this works just fine however I have 3 of these controllers that have the same vendor/device id's and I want to bind just 1 of them to the vfio driver.
relevant lspci -n output for the 3 USB 3.0 Controllers:
Code:
03:00.0 0c03: 1b6f:7023 (rev 01)
04:00.0 0c03: 1b6f:7023 (rev 01)
05:00.0 0c03: 1b6f:7023 (rev 01)
Is there a way to narrow it down to a specific controller? I know I can unbind a specific controller with:
Code:
# echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
And only that specific controller is removed.
But this does not work in reverse to bind (or I dont know what the proper syntax is):
Code:
# echo 04:00.0 > /sys/bus/pci/drivers/vfio-pci/new_id
-bash: echo: write error: Invalid argument
# echo 0000:04:00.0 > /sys/bus/pci/drivers/vfio-pci/new_id
-bash: echo: write error: Invalid argument
# echo 0000:04:00.0 > /sys/bus/pci/drivers/vfio-pci/bind
-bash: echo: write error: No such device
# echo 04:00.0 > /sys/bus/pci/drivers/vfio-pci/bind
-bash: echo: write error: No such device
Is there anyway to do this?
Thanks