cloud-hypervisor/vfio
Jose Carlos Venegas Munoz 6539d4a873 vfio: handle case for missing iommu_group
For cases where IOMMU is not supported, iommu_group will be no present.

This could happened because IOMMU is off at kernel level, bios level or
is not supported at all.

Instead of fail with a generic error handle it as different use case:

Before:
ReadLink(Os { code: 2, kind: NotFound, message: "No such file or directory"})

After:
VfioNoIommuGroup("/sys/bus/pci/devices/0000:03:00.0/iommu_group")

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2020-03-05 09:49:32 +00:00
..
src vfio: handle case for missing iommu_group 2020-03-05 09:49:32 +00:00
Cargo.toml build(deps): bump libc from 0.2.66 to 0.2.67 2020-02-21 08:03:30 +00:00