vfio: enable independently of PCI bus
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 11 Oct 2017 06:42:18 +0000 (12:12 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Oct 2017 22:32:20 +0000 (00:32 +0200)
commit229f351a639f846fc688d873747c863346102ea1
tree14dbc8b9b8720b685b8e75e30a2548bce44382df
parent1fb97309979d5cc5f49c337de9a3646b113d319b
vfio: enable independently of PCI bus

VFIO may be used by buses other than PCI. This patch enables
the VFIO on the basis of vfio root presence.

Since vfio_enable should be called only once, pci_vfio_enable
is also removed.

A debug print is added in case vfio_pci module is not present.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
lib/librte_eal/linuxapp/eal/eal_vfio.c
lib/librte_eal/linuxapp/eal/eal_vfio.h