[dpdk-dev] [PATCH] eal: fslmc bus need vfio enabled for non PCI case as well
Hemant Agrawal
hemant.agrawal at nxp.com
Thu Jul 13 13:48:50 CEST 2017
In case no_pci is configured, fslmc bus will still need the
the vfio to be enabled.
Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
lib/librte_eal/linuxapp/eal/eal.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c
index 7c78f2d..0484396 100644
--- a/lib/librte_eal/linuxapp/eal/eal.c
+++ b/lib/librte_eal/linuxapp/eal/eal.c
@@ -722,6 +722,13 @@ static int rte_eal_vfio_setup(void)
vfio_enabled |= pci_vfio_is_enabled();
}
+#ifdef RTE_LIBRTE_FSLMC_BUS
+ if (!vfio_enabled) {
+ if (!vfio_enable("vfio_fsl_mc"))
+ vfio_enabled = 1;
+ }
+#endif
+
if (vfio_enabled) {
/* if we are primary process, create a thread to communicate with
--
2.7.4
More information about the dev
mailing list