vfio: expand non-viable group error message
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
@@ -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
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.
Signed-off-by Kevin Traynor <[email protected]>--- 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
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
Rami Rosen
Acked-by Anatoly BurakovQuoted 9 lines · Kevin Traynor
Quoted 8 lines
"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 <[email protected]>---
Quoted 1 line
Thomas Monjalon
Applied27/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.
Signed-off-by Kevin Traynor <[email protected]>Acked-by Anatoly Burakov <[email protected]>Reviewd-by Rami Rosen <[email protected]>
Applied, thanks