mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
vfio: IOMMU group is always 0 if no IOMMU is present
This commit is contained in:
parent
80386d1085
commit
c3993a22c6
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ VfioContainer::attachDevice(const pci_device* pdev)
|
|||
}
|
||||
|
||||
/* Get IOMMU group of device */
|
||||
int index = pci_get_iommu_group(pdev);
|
||||
int index = isIommuEnabled() ? pci_get_iommu_group(pdev) : 0;
|
||||
if (index < 0) {
|
||||
logger->error("Failed to get IOMMU group of device");
|
||||
throw std::exception();
|
||||
|
|
Loading…
Add table
Reference in a new issue