vfio: use generic multi-process channel
authorJianfeng Tan <jianfeng.tan@intel.com>
Sun, 15 Apr 2018 15:06:19 +0000 (15:06 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 17 Apr 2018 23:26:06 +0000 (01:26 +0200)
commit83a73c5fef669e54a137e63449efe06bf7449149
treef8512a207ee40a4d1f37f68614c2505a94ce303d
parentd9a42a69febf453cdb735e77fc0e01463ddf4acc
vfio: use generic multi-process channel

Previously, vfio uses its own private channel for the secondary
process to get container fd and group fd from the primary process.

This patch changes to use the generic mp channel.

Test:
  1. Bind two NICs to vfio-pci.

  2. Start the primary and secondary process.
    $ (symmetric_mp) -c 2 -- -p 3 --num-procs=2 --proc-id=0
    $ (symmetric_mp) -c 4 --proc-type=auto -- -p 3 \
--num-procs=2 --proc-id=1

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_vfio.c
lib/librte_eal/linuxapp/eal/eal_vfio.h
lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c