vfio: fix sPAPR IOMMU mapping
authorTakeshi Yoshimura <tyos@jp.ibm.com>
Tue, 7 Aug 2018 02:35:06 +0000 (11:35 +0900)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 28 Oct 2018 21:33:27 +0000 (22:33 +0100)
commit998c89f148ee31564ccde958056e54418c18f10c
treed1afd63b3408278dd9c7d3169a0206b436b340bf
parentf7378a03d18d186b0c53f57f5bcc939e5c5c227c
vfio: fix sPAPR IOMMU mapping

Commit 73a639085938 ("vfio: allow to map other memory regions")
introduced a bug in sPAPR IOMMU mapping. The commit removed necessary
ioctl with VFIO_IOMMU_SPAPR_REGISTER_MEMORY. Also, vfio_spapr_map_walk
should call vfio_spapr_dma_do_map instead of vfio_spapr_dma_mem_map.

Fixes: 73a639085938 ("vfio: allow to map other memory regions")
Cc: stable@dpdk.org
Signed-off-by: Takeshi Yoshimura <tyos@jp.ibm.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c