vfio: revert retry logic for MSI-X BAR mapping
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 30 Jul 2018 10:59:06 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Aug 2018 15:51:04 +0000 (17:51 +0200)
commit45fdc3ed87649d9f4d263a3745a57f29de340667
tree386d5bc964528016b3c62210776888e82d10d8f7
parentf771732be83aa50b917d064b72760b98166f73c8
vfio: revert retry logic for MSI-X BAR mapping

This reverts commit d4774a568ba0a5923229974a002972c83eb04570.

The patch is incomplete because kernel 4.16+, while being capable
of mapping MSI-X BARs, will also report if such a capability is
available. Without checking this capability, gratuitous errors
are displayed on kernels <4.16 while VFIO is attempting to mmap
MSI-X BAR and fails, which can be confusing to the user.

Fixes: d4774a568ba0 ("vfio: fix workaround of BAR mapping")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/bus/pci/linux/pci_vfio.c