vfio: fix device initialization
authorTetsuya Mukawa <mukawa@igel.co.jp>
Sat, 11 Jul 2015 06:29:49 +0000 (15:29 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 14 Jul 2015 08:43:39 +0000 (10:43 +0200)
commit538e7b887600abf40957b59ac3d7c2f879906488
tree2775947ce6242db91fee0d4177f43f4faf4d1148
parent2269e7e815a203ef0276d80c1013269d240d6593
vfio: fix device initialization

The patch fixes vfio initialization issue introduced by below patch.

Root cause is that VFIO_PRESENT is inaccessible in eal common level.
To fix it, remove pci_map/unmap_device from common code, then implement
in linux and bsd code.

Fixes: 35b3313e322b ("pci: merge mapping functions for linux and bsd")

Reported-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/linuxapp/eal/eal_pci.c