]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Add device denylist
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 27 Jul 2020 19:43:40 +0000 (13:43 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 27 Jul 2020 19:43:40 +0000 (13:43 -0600)
commitb04b1e6a14cdf05b18c3ec41db4600a65a4e0e26
tree254dd45f52af7cf395a6214c0cae77325fb16399
parentae5f2a59c7a5b4b1013232bf1eaf153e0f29dba5
vfio/pci: Add device denylist

Add denylist of devices that by default are not probed by vfio-pci.
Devices in this list may be susceptible to untrusted application, even
if the IOMMU is enabled. To be accessed via vfio-pci, the user has to
explicitly disable the denylist.

The denylist can be disabled via the module parameter disable_denylist.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c