[vfio-users] [PATCH] Passthough of one GPU with a PC with 2 identical GPUs installed
James
James at superbug.co.uk
Sat Jun 15 13:30:49 UTC 2019
Hi,
Please find attached a kernel patch. This is based from a very old patch
that never made it into the kernel in 2014.
https://lkml.org/lkml/2014/10/20/295. I am not sure who else I should be
adding to the Signed-off-by section.
I have modified it and tested it, so that it works against kernel 5.1.10.
Summary below:
PCI: Introduce new device binding path using pci_dev.driver_override
In order to bind PCI slots to specific drivers use:
pci=driver[xxxx:xx:xx.x]=foo,driver[xxxx:xx:xx.x]=bar,...
The main use case for this is in relation to qemu passthrough
of a pci device using IOMMU and vfio-pci.
Example:
The host has two identical devices. E.g. 2 AMD Vega GPUs,
The user wishes to passthrough only one GPU.
This new feature allows the user to select which GPU to passthrough.
Signed-off-by: James Courtier-Dutton <James at superbug.co.uk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pci-device-override.diff
Type: text/x-patch
Size: 5264 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20190615/19ba20eb/attachment.bin>
More information about the vfio-users
mailing list