Skip to content

Commit 95feb31

Browse files
committed
VFIO: Add the SPR_DSA and SPR_IAX devices to the denylist
Due to an erratum with the SPR_DSA and SPR_IAX devices, it is not secure to assign these devices to virtual machines. Add the PCI IDs of these devices to the VFIO denylist to ensure that this is handled appropriately by the VFIO subsystem. The SPR_DSA and SPR_IAX devices are on-SOC devices for the Sapphire Rapids (and related) family of products that perform data movement and compression. Signed-off-by: Arjan van de Ven <[email protected]>
1 parent a38297e commit 95feb31

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

drivers/dma/idxd/registers.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#include <uapi/linux/idxd.h>
77

88
/* PCI Config */
9-
#define PCI_DEVICE_ID_INTEL_DSA_SPR0 0x0b25
10-
#define PCI_DEVICE_ID_INTEL_IAX_SPR0 0x0cfe
11-
129
#define DEVICE_VERSION_1 0x100
1310
#define DEVICE_VERSION_2 0x200
1411

drivers/vfio/pci/vfio_pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ static bool vfio_pci_dev_in_denylist(struct pci_dev *pdev)
7171
case PCI_DEVICE_ID_INTEL_QAT_C62X_VF:
7272
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC:
7373
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF:
74+
case PCI_DEVICE_ID_INTEL_DSA_SPR0:
75+
case PCI_DEVICE_ID_INTEL_IAX_SPR0:
7476
return true;
7577
default:
7678
return false;

include/linux/pci_ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2687,8 +2687,10 @@
26872687
#define PCI_DEVICE_ID_INTEL_I960 0x0960
26882688
#define PCI_DEVICE_ID_INTEL_I960RM 0x0962
26892689
#define PCI_DEVICE_ID_INTEL_HDA_HSW_0 0x0a0c
2690+
#define PCI_DEVICE_ID_INTEL_DSA_SPR0 0x0b25
26902691
#define PCI_DEVICE_ID_INTEL_HDA_HSW_2 0x0c0c
26912692
#define PCI_DEVICE_ID_INTEL_CENTERTON_ILB 0x0c60
2693+
#define PCI_DEVICE_ID_INTEL_IAX_SPR0 0x0cfe
26922694
#define PCI_DEVICE_ID_INTEL_HDA_HSW_3 0x0d0c
26932695
#define PCI_DEVICE_ID_INTEL_HDA_BYT 0x0f04
26942696
#define PCI_DEVICE_ID_INTEL_SST_BYT 0x0f28

0 commit comments

Comments
 (0)