Skip to content

Commit 5017332

Browse files
gcabidduawilliam
authored andcommitted
vfio/pci: Add QAT devices to denylist
The current generation of Intel® QuickAssist Technology devices are not designed to run in an untrusted environment because of the following issues reported in the document "Intel® QuickAssist Technology (Intel® QAT) Software for Linux" (document number 336211-014): QATE-39220 - GEN - Intel® QAT API submissions with bad addresses that trigger DMA to invalid or unmapped addresses can cause a platform hang QATE-7495 - GEN - An incorrectly formatted request to Intel® QAT can hang the entire Intel® QAT Endpoint The document is downloadable from https://01.org/intel-quickassist-technology at the following link: https://01.org/sites/default/files/downloads/336211-014-qatforlinux-releasenotes-hwv1.7_0.pdf This patch adds the following QAT devices to the denylist: DH895XCC, C3XXX and C62X. Signed-off-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Fiona Trahe <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
1 parent 1f97970 commit 5017332

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/vfio/pci/vfio_pci.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,21 @@ static inline bool vfio_vga_disabled(void)
7575

7676
static bool vfio_pci_dev_in_denylist(struct pci_dev *pdev)
7777
{
78+
switch (pdev->vendor) {
79+
case PCI_VENDOR_ID_INTEL:
80+
switch (pdev->device) {
81+
case PCI_DEVICE_ID_INTEL_QAT_C3XXX:
82+
case PCI_DEVICE_ID_INTEL_QAT_C3XXX_VF:
83+
case PCI_DEVICE_ID_INTEL_QAT_C62X:
84+
case PCI_DEVICE_ID_INTEL_QAT_C62X_VF:
85+
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC:
86+
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF:
87+
return true;
88+
default:
89+
return false;
90+
}
91+
}
92+
7893
return false;
7994
}
8095

0 commit comments

Comments
 (0)