diff options
-rw-r--r-- | drivers/iommu/amd_iommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 27300aece203..188b81d56ac4 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -2996,6 +2996,13 @@ static struct iommu_domain *amd_iommu_domain_alloc(unsigned type) | |||
2996 | } | 2996 | } |
2997 | pdomain = &dma_domain->domain; | 2997 | pdomain = &dma_domain->domain; |
2998 | break; | 2998 | break; |
2999 | case IOMMU_DOMAIN_IDENTITY: | ||
3000 | pdomain = protection_domain_alloc(); | ||
3001 | if (!pdomain) | ||
3002 | return NULL; | ||
3003 | |||
3004 | pdomain->mode = PAGE_MODE_NONE; | ||
3005 | break; | ||
2999 | default: | 3006 | default: |
3000 | return NULL; | 3007 | return NULL; |
3001 | } | 3008 | } |