From da2d1d42f9638d0a1f8dc0617ac8fb0929dc2d6a Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Fri, 26 Apr 2019 17:22:30 +0100 Subject: [PATCH] vfio: expand non-viable group error message "VFIO group is not viable" error message is correct but not very user friendly for something which can usually be easily rectified. Add some additional text to give more of a hint. Signed-off-by: Kevin Traynor Acked-by: Anatoly Burakov Reviewed-by: Rami Rosen --- lib/librte_eal/linux/eal/eal_vfio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linux/eal/eal_vfio.c b/lib/librte_eal/linux/eal/eal_vfio.c index 19e70bb662..6892a2c141 100644 --- a/lib/librte_eal/linux/eal/eal_vfio.c +++ b/lib/librte_eal/linux/eal/eal_vfio.c @@ -685,7 +685,9 @@ rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, rte_vfio_clear_group(vfio_group_fd); return -1; } else if (!(group_status.flags & VFIO_GROUP_FLAGS_VIABLE)) { - RTE_LOG(ERR, EAL, " %s VFIO group is not viable!\n", dev_addr); + RTE_LOG(ERR, EAL, " %s VFIO group is not viable! " + "Not all devices in IOMMU group bound to VFIO or unbound\n", + dev_addr); close(vfio_group_fd); rte_vfio_clear_group(vfio_group_fd); return -1; -- 2.20.1