Skip to content
Commit f44efca0 authored by Andre Przywara's avatar Andre Przywara Committed by Alex Williamson
Browse files

vfio: Ignore -ENODEV when getting MSI cookie



When we try to get an MSI cookie for a VFIO device, that can fail if
CONFIG_IOMMU_DMA is not set. In this case iommu_get_msi_cookie() returns
-ENODEV, and that should not be fatal.

Ignore that case and proceed with the initialisation.

This fixes VFIO with a platform device on the Calxeda Midway (no MSIs).

Fixes: f6810c15 ("iommu/arm-smmu: Clean up early-probing workarounds")
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 00bc5095
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment