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 <arjan@linux.intel.com>
This commit is contained in:
parent
a38297e3fb
commit
95feb3160e
@ -6,9 +6,6 @@
|
|||||||
#include <uapi/linux/idxd.h>
|
#include <uapi/linux/idxd.h>
|
||||||
|
|
||||||
/* PCI Config */
|
/* PCI Config */
|
||||||
#define PCI_DEVICE_ID_INTEL_DSA_SPR0 0x0b25
|
|
||||||
#define PCI_DEVICE_ID_INTEL_IAX_SPR0 0x0cfe
|
|
||||||
|
|
||||||
#define DEVICE_VERSION_1 0x100
|
#define DEVICE_VERSION_1 0x100
|
||||||
#define DEVICE_VERSION_2 0x200
|
#define DEVICE_VERSION_2 0x200
|
||||||
|
|
||||||
|
@ -71,6 +71,8 @@ static bool vfio_pci_dev_in_denylist(struct pci_dev *pdev)
|
|||||||
case PCI_DEVICE_ID_INTEL_QAT_C62X_VF:
|
case PCI_DEVICE_ID_INTEL_QAT_C62X_VF:
|
||||||
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC:
|
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC:
|
||||||
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF:
|
case PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF:
|
||||||
|
case PCI_DEVICE_ID_INTEL_DSA_SPR0:
|
||||||
|
case PCI_DEVICE_ID_INTEL_IAX_SPR0:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
@ -2687,8 +2687,10 @@
|
|||||||
#define PCI_DEVICE_ID_INTEL_I960 0x0960
|
#define PCI_DEVICE_ID_INTEL_I960 0x0960
|
||||||
#define PCI_DEVICE_ID_INTEL_I960RM 0x0962
|
#define PCI_DEVICE_ID_INTEL_I960RM 0x0962
|
||||||
#define PCI_DEVICE_ID_INTEL_HDA_HSW_0 0x0a0c
|
#define PCI_DEVICE_ID_INTEL_HDA_HSW_0 0x0a0c
|
||||||
|
#define PCI_DEVICE_ID_INTEL_DSA_SPR0 0x0b25
|
||||||
#define PCI_DEVICE_ID_INTEL_HDA_HSW_2 0x0c0c
|
#define PCI_DEVICE_ID_INTEL_HDA_HSW_2 0x0c0c
|
||||||
#define PCI_DEVICE_ID_INTEL_CENTERTON_ILB 0x0c60
|
#define PCI_DEVICE_ID_INTEL_CENTERTON_ILB 0x0c60
|
||||||
|
#define PCI_DEVICE_ID_INTEL_IAX_SPR0 0x0cfe
|
||||||
#define PCI_DEVICE_ID_INTEL_HDA_HSW_3 0x0d0c
|
#define PCI_DEVICE_ID_INTEL_HDA_HSW_3 0x0d0c
|
||||||
#define PCI_DEVICE_ID_INTEL_HDA_BYT 0x0f04
|
#define PCI_DEVICE_ID_INTEL_HDA_BYT 0x0f04
|
||||||
#define PCI_DEVICE_ID_INTEL_SST_BYT 0x0f28
|
#define PCI_DEVICE_ID_INTEL_SST_BYT 0x0f28
|
||||||
|
Loading…
Reference in New Issue
Block a user