From cfeb87ad5aef28a8bf56b322b768a44280515e0e Mon Sep 17 00:00:00 2001 From: Duanqiang Wen Date: Fri, 16 Jun 2023 14:06:08 +0800 Subject: [PATCH] pci: workaround multiple functions can be assigned to only one VM driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I66W4Y CVE: NA workaround if multiple functions on a PCl device belong to the same IOMMU group, they can be directly assigned to only one VM as well, letting multiple functions belong to different IOMMU group. Signed-off-by: Duanqiang Wen --- drivers/pci/quirks.c | 1 + include/linux/pci_ids.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 5673351ea6f8..2c27e2331d87 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4657,6 +4657,7 @@ static const struct pci_dev_acs_enabled { /* because rootcomplex Vendor id is 0x17cd on phytium cpu */ { 0x17cd, PCI_ANY_ID, pci_quirk_xgene_acs }, #endif + { PCI_VENDOR_ID_TRUSTNETIC, PCI_ANY_ID, pci_quirk_mf_endpoint_acs }, { 0 } }; diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 3d622046b753..1e7d7f05d7ea 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -3099,4 +3099,6 @@ #define PCI_VENDOR_ID_NCUBE 0x10ff +#define PCI_VENDOR_ID_TRUSTNETIC 0x8088 + #endif /* _LINUX_PCI_IDS_H */ -- Gitee