]> git.karo-electronics.de Git - linux-beck.git/commitdiff
vfio: whitelist pcieport
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Feb 2013 21:02:13 +0000 (14:02 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Feb 2013 21:02:13 +0000 (14:02 -0700)
pcieport does nice things like manage AER and we know it doesn't do
DMA or expose any user accessible devices on the host.  It also keeps
the Memory, I/O, and Busmaster bits enabled, which is pretty handy
when trying to use anyting below it.  Devices owned by pcieport cannot
be given to users via vfio, but we can tolerate them not being owned
by vfio-pci.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c

index 8e6dcecbc407473cb70002fc46066f9cdf0f5b63..28e2d5b2c0c759515ba733648c79aeef23ac05e9 100644 (file)
@@ -442,7 +442,7 @@ static struct vfio_device *vfio_group_get_device(struct vfio_group *group,
  * a device.  It's not always practical to leave a device within a group
  * driverless as it could get re-bound to something unsafe.
  */
-static const char * const vfio_driver_whitelist[] = { "pci-stub" };
+static const char * const vfio_driver_whitelist[] = { "pci-stub", "pcieport" };
 
 static bool vfio_whitelisted_driver(struct device_driver *drv)
 {