OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bb6e24
)
iommu/amd: Support IOMMU_DOMAIN_IDENTITY type allocation
author
Joerg Roedel
<jroedel@suse.de>
Thu, 28 May 2015 16:41:41 +0000
(18:41 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 11 Jun 2015 07:42:22 +0000
(09:42 +0200)
Add support to allocate direct mapped domains through the
IOMMU-API.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index
27300ae
..
188b81d
100644
(file)
--- 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)
}
pdomain = &dma_domain->domain;
break;
+ case IOMMU_DOMAIN_IDENTITY:
+ pdomain = protection_domain_alloc();
+ if (!pdomain)
+ return NULL;
+
+ pdomain->mode = PAGE_MODE_NONE;
+ break;
default:
return NULL;
}