[PATCH] bus/fslmc: fix invalid use of default VFIO config

2022-06-03 Thread Romain Delhomel
dk.org Signed-off-by: Romain Delhomel Acked-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index b4704eeae4e2..abe1cab2ee20 100644 --- a/drivers/b

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

2022-05-31 Thread Romain Delhomel
o_cfg container, to configure the container because default_vfio_cfg->active_group > 1. This patch fixes the issue by always creating a new container (and its associated vfio_cfg) and binding the group to it. Fixes: a69f79300262 ("bus/fslmc: support multi VFIO group") Signed-off-by: Ro

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 gro

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 > numb

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

2022-05-27 Thread Romain Delhomel
o_cfg container, to configure the container because default_vfio_cfg->active_group > 1. This patch fixes the issue by always creating a new container (and its associated vfio_cfg) and bind the group to it. Fixes: a69f79300262 ("bus/fslmc: support multi VFIO group") Signed-of