Commit a4eecd72 authored by Joerg Roedel's avatar Joerg Roedel

Merge branch 'iommu/fixes' into x86/amd

parents a5a91e54 0f91d079
......@@ -2800,6 +2800,10 @@ static int amd_iommu_def_domain_type(struct device *dev)
if (!dev_data)
return 0;
/* Always use DMA domain for untrusted device */
if (dev_is_pci(dev) && to_pci_dev(dev)->untrusted)
return IOMMU_DOMAIN_DMA;
/*
* Do not identity map IOMMUv2 capable devices when:
* - memory encryption is active, because some of those devices
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment