eal: pick IOVA as PA if IOMMU is not available
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 29 Jul 2019 13:52:34 +0000 (14:52 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 08:09:13 +0000 (10:09 +0200)
commit79a0bbe5b6f9a87d0de7cdb5a0dfc62977442904
treea86c5b72589a85f11563dabb262207b90a16777a
parent376aa383e70ac3b66f4d7b6cc33d9971331a3915
eal: pick IOVA as PA if IOMMU is not available

When IOMMU is not available, /sys/kernel/iommu_groups will not be
populated. This is happening since at least 3.6 when VFIO support
was added. If the directory is empty, EAL should not pick IOVA as
VA as the default IOVA mode.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
doc/guides/prog_guide/env_abstraction_layer.rst
doc/guides/rel_notes/known_issues.rst
doc/guides/rel_notes/release_19_08.rst
lib/librte_eal/linux/eal/eal.c