On 17/3/26 23:57, Pierrick Bouvier wrote:
In case current kernel does not support /dev/iommu, qemu will probably
fail first because /sys/bus/pci/devices/*/vfio-dev/ is not present,
since QEMU opens it before /dev/iommu.
Instead, report an error directly when initializing iommufd object, to
inform user that kernel does not support it, with a hint about missing
CONFIG_IOMMUFD.
Signed-off-by: Pierrick Bouvier <[email protected]>
---
backends/iommufd.c | 5 +++++
1 file changed, 5 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>