vfio: fix structures for sPAPR IOMMU
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 26 Apr 2017 08:06:41 +0000 (18:06 +1000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 30 Apr 2017 17:44:34 +0000 (19:44 +0200)
commite11222c7f429a8cdde5206fd724161f6c363da40
treed7a7493abfcb5abdb73d0666076e6b09fb073557
parenta9c349e3a100a9f9995a3d71cbd26b4f789ddef5
vfio: fix structures for sPAPR IOMMU

If Linux UAPI headers in the system do not have VFIO_SPAPR_TCE_v2_IOMMU
defined, DPDK define necessary structures itself. However the existing
definitions are different from ones pushed to the mainline kernel.

This copies structures passed via VFIO_IOMMU_SPAPR_TCE_CREATE and
VFIO_IOMMU_SPAPR_TCE_REMOVE ioctls.

No change in behaviour is expected if installed linux UAPI headers
have knowledge of VFIO_SPAPR_TCE_v2_IOMMU.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.h