* map the PCI resources of a PCI device in virtual memory (VFIO version). * primary and secondary processes follow almost exactly the same path */
| 1058 | * primary and secondary processes follow almost exactly the same path |
| 1059 | */ |
| 1060 | int |
| 1061 | pci_vfio_map_resource(struct rte_pci_device *dev) |
| 1062 | { |
| 1063 | if (rte_eal_process_type() == RTE_PROC_PRIMARY) |
| 1064 | return pci_vfio_map_resource_primary(dev); |
| 1065 | else |
| 1066 | return pci_vfio_map_resource_secondary(dev); |
| 1067 | } |
| 1068 | |
| 1069 | static struct mapped_pci_resource * |
| 1070 | find_and_unmap_vfio_resource(struct mapped_pci_res_list *vfio_res_list, |
no test coverage detected