Message ID | 1553843655-21478-1-git-send-email-aaron.ma@canonical.com |
---|---|
State | New |
Headers | show |
Series | [v2] iommu/vt-d: Disable ATS support on untrusted devices | expand |
Sorry, missed cherry-pick info. Please ignore this one. Thanks, Aaron
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 1c72434af56d..5ade9ac6d3e8 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -2518,7 +2518,8 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu, if (dev && dev_is_pci(dev)) { struct pci_dev *pdev = to_pci_dev(info->dev); - if (!pci_ats_disabled() && + if (!pdev->untrusted && + !pci_ats_disabled() && ecap_dev_iotlb_support(iommu->ecap) && pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ATS) && dmar_find_matched_atsr_unit(pdev))