cloud-hypervisor/vfio/src
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
..
lib.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00
vfio_device.rs vfio: handle case for missing iommu_group 2020-03-05 09:49:32 +00:00
vfio_ioctls.rs vfio: VFIO API wrappers and helpers 2019-07-24 11:55:08 +02:00
vfio_pci.rs vmm: Factorize VFIO PCI device creation 2020-03-04 12:06:02 +00:00