We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5a91e5 + 0f91d07 commit a4eecd7Copy full SHA for a4eecd7
1 file changed
drivers/iommu/amd/iommu.c
@@ -2800,6 +2800,10 @@ static int amd_iommu_def_domain_type(struct device *dev)
2800
if (!dev_data)
2801
return 0;
2802
2803
+ /* Always use DMA domain for untrusted device */
2804
+ if (dev_is_pci(dev) && to_pci_dev(dev)->untrusted)
2805
+ return IOMMU_DOMAIN_DMA;
2806
+
2807
/*
2808
* Do not identity map IOMMUv2 capable devices when:
2809
* - memory encryption is active, because some of those devices
0 commit comments