public:gpu-passthrough
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:gpu-passthrough [2015/11/13 01:59] – [IOMMU Groups and ACS] squires | public:gpu-passthrough [2015/11/13 20:29] (current) – [References] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== GPU Passthrough ====== | ====== GPU Passthrough ====== | ||
| - | GPU passthrough refers to configurations where a graphics card is reserved for use by a virtual machine. Making use of VT-d, IOMMU, and related technologies, the graphics card can be used at native performance. | + | GPU passthrough refers to configurations where a graphics card is reserved for use by a virtual machine. Making use of IOMMU, the graphics card can be used at native performance. |
| This page first describes the process in general and then my specific system configurations. | This page first describes the process in general and then my specific system configurations. | ||
| Line 46: | Line 46: | ||
| If your guest graphics card is not isolated, you can try moving it to a different slot on your motherboard to see if that slot has better isolation. Some slots are connected to the processor PCI lanes, which only have isolation if your processor supports ACS. Other slots are connected to the PCH PCI lanes, which may have isolation on root ports. | If your guest graphics card is not isolated, you can try moving it to a different slot on your motherboard to see if that slot has better isolation. Some slots are connected to the processor PCI lanes, which only have isolation if your processor supports ACS. Other slots are connected to the PCH PCI lanes, which may have isolation on root ports. | ||
| - | If you don't have isolation on any PCI slot and you don't need one of the devices that share the guest graphics card's IOMMU group, you can bind the extra device to either of the vfio-pci or pci-stub drivers. | + | If you don't have isolation on any PCI slot and you don't need the devices that share the guest graphics card's IOMMU group, you can bind the extra device to either of the vfio-pci or pci-stub drivers. |
| As a last resort, you can try using the ACS override kernel patch. However, this does not create isolation. It merely hides the fact that isolation doesn' | As a last resort, you can try using the ACS override kernel patch. However, this does not create isolation. It merely hides the fact that isolation doesn' | ||
| Line 56: | Line 56: | ||
| ^ Host Device ^ Guest Device ^ Guest Device UEFI-enabled ^ Result | ^ Host Device ^ Guest Device ^ Guest Device UEFI-enabled ^ Result | ||
| - | | GPU | GPU | Yes or No | OK | | + | | GPU | GPU | Yes or No | OK |
| - | | GPU | IGP | Yes or No | Invalid | + | | GPU | IGP | Yes or No | Invalid |
| - | | IGP | GPU | No | Requires VGA arbitration kernel patch | | + | | IGP | GPU | No | Requires VGA arbitration kernel patch; DRI will be disabled |
| - | | IGP | GPU | Yes | Use OVMF firmware | + | | IGP | GPU | Yes | Use OVMF firmware; can still use DRI | |
| Virtualization is fully supported by NVIDIA Quadro cards. GeForce cards will work, but require that the virtualization be hidden from NVIDIA drivers. | Virtualization is fully supported by NVIDIA Quadro cards. GeForce cards will work, but require that the virtualization be hidden from NVIDIA drivers. | ||
| Line 165: | Line 165: | ||
| * Use the i914.enable_hd_vgaarb patch (and lose DRI). | * Use the i914.enable_hd_vgaarb patch (and lose DRI). | ||
| * Use a guest GPU that supports UEFI and use the OVMF boot firmware to start the virtual machine. (OVMF can initialize the GPU using legacy-free UEFI, keeping DRI and bypassing VGA and the need for arbitration.) | * Use a guest GPU that supports UEFI and use the OVMF boot firmware to start the virtual machine. (OVMF can initialize the GPU using legacy-free UEFI, keeping DRI and bypassing VGA and the need for arbitration.) | ||
| - | |||
| - | ===== References ===== | ||
| - | |||
| - | [[https:// | ||
| ====== Core i5-4690K ====== | ====== Core i5-4690K ====== | ||
| Line 175: | Line 171: | ||
| ===== Kernel ===== | ===== Kernel ===== | ||
| + | |||
| + | ====== References ====== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | [[https:// | ||
public/gpu-passthrough.1447379956.txt.gz · Last modified: 2015/11/13 01:59 by squires