vfio: retry creating sPAPR DMA window
authorTakeshi Yoshimura <tyos@jp.ibm.com>
Fri, 7 Jun 2019 02:28:29 +0000 (11:28 +0900)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 7 Jul 2019 21:20:23 +0000 (23:20 +0200)
commitdb90b4969e2e2e5df88fb993779bf6a03e9cae39
treee13706547659105861a9a98413d6462b2e64bc5b
parentaf2828cfcd127fb91b581a6e24c7433acce01d91
vfio: retry creating sPAPR DMA window

sPAPR allows only page_shift from VFIO_IOMMU_SPAPR_TCE_GET_INFO ioctl.
However, Linux 4.17 or before returns incorrect page_shift for Power9.
I added the code for retrying creation of sPAPR DMA window.

Signed-off-by: Takeshi Yoshimura <tyos@jp.ibm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linux/eal/eal_vfio.c