vfio: set IOMMU type for the container once
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 4 Apr 2017 16:06:16 +0000 (17:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 30 Apr 2017 17:26:13 +0000 (19:26 +0200)
commit1123f89f6a86dd31bd19c68ec1f10f90b107ac91
treeb0eb9c20621df78d16e5fe997a4673c7a0a4b55b
parent7917d5f5ea46e6e812ffbcbb451533bee1252428
vfio: set IOMMU type for the container once

If more than one used PCI device belongs to one IOMMU group,
it is still one IOMMU group and the container IOMMU type
should be set only once.

Fixes: 94c0776b1bad ("vfio: support hotplug")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c