vfio: refactor PCI BAR mapping
authorJonas Pfefferle <jpf@zurich.ibm.com>
Fri, 6 Oct 2017 14:40:20 +0000 (16:40 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 10 Oct 2017 13:37:58 +0000 (15:37 +0200)
commit33604c31354abc9c55405d5a4b99eb42a55a495f
treec13cf62e4460f172b1572cc2626b99e539296dd2
parented1e7e576be219e1e59253abb417c2286000641c
vfio: refactor PCI BAR mapping

Split pci_vfio_map_resource for primary and secondary processes.
Save all relevant mapping data in primary process to allow
the secondary process to perform mappings.

Signed-off-by: Jonas Pfefferle <jpf@zurich.ibm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c