vfio: set eventfd non-blocking and not inherited
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 29 Apr 2015 15:15:45 +0000 (08:15 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 May 2015 15:07:57 +0000 (17:07 +0200)
commit21a0cf353539131bf7f879a8d5d17374401dff0b
tree564538ac9bb57218f26e743f1cd4d3af94b32e76
parent824cb29c0e7b8a2b3ed285546c3a39a8e0b3cd44
vfio: set eventfd non-blocking and not inherited

Set internal event file descriptor to be non-block and not
inherited across exec.  This prevents accidental hangs and
passing in another thread.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c