vfio: do not unregister callback in secondary process
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 10 Jan 2019 16:33:39 +0000 (16:33 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Jan 2019 14:31:51 +0000 (15:31 +0100)
commitc0f8d50d1c3930c560f244b66c6820879be9297c
tree3b246a593673d7794420c4201223190983605277
parent97257eee2d39dbbedec4af2367430d359c373582
vfio: do not unregister callback in secondary process

Callbacks are only registered in the primary, so do not attempt to
unregister callbacks in secondary processes.

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