Ask Your Question

SCN's profile - activity

2020-06-10 05:03:04 -0500 received badge  Popular Question (source)
2020-06-10 05:03:04 -0500 received badge  Notable Question (source)
2020-06-05 01:00:39 -0500 answered a question Multiple devices in pci_passthrough:alias

This should work in the flavor set pci_passthrough:alias="m4000:1,titanx:1"

2020-06-05 01:00:33 -0500 asked a question How to passthrough a GPU device with two functions ?

We have a GPU device with two functions on a ubuntu 16.04 hypervisor :

$ lspci -vt
     +-[0000:80]-+-00.0-[81]--
     |           +-01.0-[82]--
     |           +-02.0-[83]--+-00.0  Xilinx Corporation Device 5020
     |           |            \-00.1  Xilinx Corporation Device 5021
$ lspci -nn |grep -i xili
    83:00.0 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5020]
    83:00.1 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5021]

IOMMU groups on the hypervisor:

IOMMU Group 57 83:00.0 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5020]
IOMMU Group 58 83:00.1 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5021]

When we passthrough this device to VM on openstack rocky the device looks as two devices:

$ lspci -nn |grep -i xili
    0:5.0 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5020]
    0:6.0 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5021]

We are using two aliases to passthrough which is resulting in this situation. Is there a way to passthrough this device as a single device with two functions similar to what is seen on the hypervisor ?

2020-06-02 06:21:08 -0500 answered a question pci_passthrough alias and flavor setting for a GPU

[pci] alias = { "vendor_id":"10ee", "product_id":"5020", "device_type":"type-PCI", "name":"Xilinx5020" } alias = { "vendor_id":"10ee", "product_id":"5021", "device_type":"type-PCI", "name":"Xilinx5021" }

with flavor set as below openstack flavor set pciflavor --property "pci_passthrough:alias"="Xilinx5020:1,Xilinx5021:1"

This worked out well during further testing and configuration. We had to enable IOMMU first for the device to get passthrough.

2020-05-28 10:08:38 -0500 asked a question pci_passthrough alias and flavor setting for a GPU

We have a single GPU device detected as two devices into the compute host as below: $ lspci -nn | grep "83:00." 83:00.0 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5020] 83:00.1 Processing accelerators [1200]: Xilinx Corporation Device [10ee:5021]

We have to passthrough this device in rocky. We have set the PCI alias in the controller host as below: [pci] alias = { "vendor_id":"10ee", "product_id":"5020", "device_type":"type-PCI", "name":"Xilinx5020" } alias = { "vendor_id":"10ee", "product_id":"5021", "device_type":"type-PCI", "name":"Xilinx5021" }

but openstack does not allow setting flavor with two PCI aliases as show below: | 1b2a1111-111e-11df-1122-8f71111fb3d6 | pciflavor | 16384 | 100 | 0 | 4 | True | | 1.0 | pci_passthrough:alias='Xilinx5020:1,Xilinx5021:1',

Is there a way to add this device as single pci alias for such device or a way to add multiple pci_passthrough aliases in a better way inside a flavor ?

Thanks!