1
0
Fork 0
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:
Daniel Krebs 2018-04-24 13:12:02 +02:00
parent 80386d1085
commit c3993a22c6

View file

@ -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();