@@ -627,9 +627,10 @@ static struct vfio_device *vfio_group_get_device(struct vfio_group *group,
627
627
* that error notification via MSI can be affected for platforms that handle
628
628
* MSI within the same IOVA space as DMA.
629
629
*/
630
- static const char * const vfio_driver_whitelist [] = { "pci-stub" };
630
+ static const char * const vfio_driver_allowed [] = { "pci-stub" };
631
631
632
- static bool vfio_dev_whitelisted (struct device * dev , struct device_driver * drv )
632
+ static bool vfio_dev_driver_allowed (struct device * dev ,
633
+ struct device_driver * drv )
633
634
{
634
635
if (dev_is_pci (dev )) {
635
636
struct pci_dev * pdev = to_pci_dev (dev );
@@ -638,8 +639,8 @@ static bool vfio_dev_whitelisted(struct device *dev, struct device_driver *drv)
638
639
return true;
639
640
}
640
641
641
- return match_string (vfio_driver_whitelist ,
642
- ARRAY_SIZE (vfio_driver_whitelist ),
642
+ return match_string (vfio_driver_allowed ,
643
+ ARRAY_SIZE (vfio_driver_allowed ),
643
644
drv -> name ) >= 0 ;
644
645
}
645
646
@@ -648,7 +649,7 @@ static bool vfio_dev_whitelisted(struct device *dev, struct device_driver *drv)
648
649
* one of the following states:
649
650
* - driver-less
650
651
* - bound to a vfio driver
651
- * - bound to a whitelisted driver
652
+ * - bound to an otherwise allowed driver
652
653
* - a PCI interconnect device
653
654
*
654
655
* We use two methods to determine whether a device is bound to a vfio
@@ -674,7 +675,7 @@ static int vfio_dev_viable(struct device *dev, void *data)
674
675
}
675
676
mutex_unlock (& group -> unbound_lock );
676
677
677
- if (!ret || !drv || vfio_dev_whitelisted (dev , drv ))
678
+ if (!ret || !drv || vfio_dev_driver_allowed (dev , drv ))
678
679
return 0 ;
679
680
680
681
device = vfio_group_get_device (group , dev );
0 commit comments