Skip to contentSkip to conversation

vfio: expand non-viable group error message

PATCH Applied Kevin Traynor 4 participants 4 messages Apr 26, 2019 – May 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/librte_eal/linux/eal/eal_vfio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/librte_eal/linux/eal/eal_vfio.c +3 -1
index 19e70bb66..6892a2c14 100644
@@ -686,5 +686,7 @@ rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr,
 		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);
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Kevin Traynor

"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.

---
  lib/librte_eal/linux/eal/eal_vfio.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
lib/librte_eal/linux/eal/eal_vfio.c +0 -0
index 19e70bb66..6892a2c14 100644

lib/librte_eal/linux/eal/eal_vfio.c rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, · line 692

Quoted 8 lines
lib/librte_eal/linux/eal/eal_vfio.c +3 -1
@@ -686,5 +686,7 @@ rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr,
  		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);

Come on, everyone knows /that/!

Signature · 2 lines
Thanks,
Anatoly
#3 lore raw

27/04/2019 08:58, Rami Rosen:

Quoted 5 lines
Quoted 5 lines · Kevin Traynor
Quoted 4 lines

"VFIO group is not viable" error message is correct but not very user friendly for something which can usually be easily rectified.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Add some additional text to give more of a hint.

Applied, thanks