Re: [RFC] bus/fslmc: fix invalid use of default vfio config

2022-05-27 Thread Romain Delhomel
On Fri, May 27, 2022 at 10:34 AM Romain Delhomel wrote: > > > On Fri, May 27, 2022 at 10:28 AM Romain Delhomel < > romain.delho...@6wind.com> wrote: > >> At device probe, the fslmc bus driver calls rte_vfio_get_group_fd() to >> get a fd associated to a vfio group. This function first checks if th

Re: [RFC] bus/fslmc: fix invalid use of default vfio config

2022-05-27 Thread Romain Delhomel
On Fri, May 27, 2022 at 10:28 AM Romain Delhomel wrote: > At device probe, the fslmc bus driver calls rte_vfio_get_group_fd() to > get a fd associated to a vfio group. This function first checks if the > group is already opened, else it opens /dev/vfio/%u, and increases the > number of active gro

[RFC] bus/fslmc: fix invalid use of default vfio config

2022-05-27 Thread Romain Delhomel
At device probe, the fslmc bus driver calls rte_vfio_get_group_fd() to get a fd associated to a vfio group. This function first checks if the group is already opened, else it opens /dev/vfio/%u, and increases the number of active groups in default_vfio_cfg (which references the default vfio contain