]> git.baikalelectronics.ru Git - kernel.git/commit
Revert: "vfio-pci: Mask INTx if a device is not capabable of enabling it"
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Mar 2018 04:50:19 +0000 (22:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Mar 2018 04:50:19 +0000 (22:50 -0600)
commitda4a96aa0237e52bea02d8778d000ef4c7760c60
treea8d41fc4404a3251539fe64d6962d890216c5fd0
parent96d45f52fd10a0eddd9d410543f7fbcab31b2906
Revert: "vfio-pci: Mask INTx if a device is not capabable of enabling it"

This reverts commit 831f6ae4119dab2c279e2003fb71a7c5346fe615

The intent of commit 831f6ae4119d ("vfio-pci: Mask INTx if a device is
not capabable of enabling it") was to disallow the user from seeing
that the device supports INTx if the platform is incapable of enabling
it.  The detection of this case however incorrectly includes devices
which natively do not support INTx, such as SR-IOV VFs, and further
discussions reveal gaps even for the target use case.

Reported-by: Arjun Vynipadath <arjun@chelsio.com>
Fixes: 831f6ae4119d ("vfio-pci: Mask INTx if a device is not capabable of enabling it")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c