>From <https://www.redhat.com/archives/libvir-list/2014-April/msg00222.html>,
it looks like reasonably recent kernels have `driver_override` entry on the
PCI device.
I can confirm that my kernel has driver_override, but not preferred_driver.

>From your example, it'd be:
echo vfio-pci >/sys/bus/pci/devices/0000:09:00.0/driver_override
echo 0000:09:00.0 >/sys/bus/pci/devices/0000:09:00.0/unbind
echo 0000:09:00.0 >/sys/bus/pci/drivers_probe

Or you should be able to use /sys/bus/pci/drivers/vfio-pci/bind to
explicitly bind the device
echo 0000:09:00.0 >/sys/bus/pci/drivers/vfio-pci/bind

On Sun, 19 May 2019 at 18:32, James Courtier-Dutton <james.dut...@gmail.com>
wrote:

> Hi,
>
> I have a PC with two identical GPUs.
> One I wish to hand over to vfio and do passthru with, the other I wish the
> host to use.
> I know about commands like:
> echo 1002 687f  >/sys/bus/pci/drivers/vfio-pci/new_id
>
> But those will cause both GPUs to be claimed by vfio.
> I would prefer to do it by slot, e.g. echo 09:00.0
> >/sys/bus/pci/drivers/vfio-pci/new_id
> But, I cannot see how to do it by slot instead of PCI-ID.
>
> Any clues?
>
> Kind Regards
>
> James
>
> _______________________________________________
> vfio-users mailing list
> vfio-users@redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
_______________________________________________
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users

Reply via email to