vfio: fix secondary process initialization
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 20 Oct 2017 13:23:52 +0000 (14:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Oct 2017 22:38:24 +0000 (00:38 +0200)
commit69f7504949e95f6ad89260fb59da90f0f1fede87
tree30767b6c5fc04577d670b9cfbd77b6756378560b
parent229f351a639f846fc688d873747c863346102ea1
vfio: fix secondary process initialization

When getting group fd from primary process, secondary wasn't storing
the fd anywhere, leading to a (harmless) error message in EAL logs,
and (not so harmless) potential problems when hot-unplugging devices
managed by VFIO in a secondary process.

Fix it by actually storing the group fd whenever we get a valid one
from the secondary process.

Fixes: 94c0776b1bad ("vfio: support hotplug")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c