[vfio-users] Passthru of one GPU with a PC with 2 identical GPUs installed

James Courtier-Dutton james.dutton at gmail.com
Tue May 21 22:45:22 UTC 2019


On Sun, 19 May 2019 at 09:30, James Courtier-Dutton <james.dutton at 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.
>
>
How about something like the attached:
It lets you future filter down what vfio-pci will claim by entering them as
module options.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20190521/a2930068/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vfio-pci-slots.diff
Type: text/x-patch
Size: 2327 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20190521/a2930068/attachment.bin>


More information about the vfio-users mailing list