vfio: improve noiommu check error handling
authorJonas Pfefferle <jpf@zurich.ibm.com>
Tue, 31 Oct 2017 15:59:46 +0000 (16:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 20 Jan 2018 15:04:37 +0000 (16:04 +0100)
commitde4a79cf56bec0623f7f73ca82a2cff15f1f38e3
tree9ed172b5f19a8d464889c3c04aa080faf8ce1333
parentc43cb3b184ca416c2a2ecd66668edb797cbcd25c
vfio: improve noiommu check error handling

Kernels v4.4 and earlier does have vfio, but not
the noiommu mode, so the file does not exist.

Check and report errors on open/read in noiommu check.

Signed-off-by: Jonas Pfefferle <jpf@zurich.ibm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c