Table Of Contents

Previous topic

vm.device.get_instance

Next topic

vm.device.iommu_enabled

vm.device.get_pci_ids_for_gpu_isolation

Get PCI IDs of devices which are required to be isolated for gpu_pci_id GPU isolation.

Basically when a GPU passthrough is desired for a VM, we need to isolate all the devices which are in the same IOMMU group as the GPU. This is required because if we don’t do this, the VM will not be able to start because the devices in the same IOMMU group as the GPU will be in use by the host and will not be available for the VM to use.

This endpoints retrieves all the PCI devices which are in the same IOMMU group as the GPU and returns their PCI IDs so UI can use those and create PCI devices for them and isolate them.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: gpu_pci_id

gpu_pci_id

Type: string

Must be at least 1 characters long

Result

Type: array of string
No Additional Items
Each item of this array must be:
Type: string

Must be at least 1 characters long



Required roles: VM_DEVICE_READ