diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-01-06 01:18:13 -0500 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2014-01-09 06:43:28 -0500 |
commit | 9544c003e85f6ac6b0b617e15266fe2e81caa42a (patch) | |
tree | 5e39e827d87dbd9233db7647cd3c3b6179d2f83b /drivers/iommu | |
parent | 5c645b35b77024fb440b2bc8847fa0193119b2a6 (diff) |
iommu/vt-d, trivial: print correct domain id of static identity domain
Field si_domain->id is set by iommu_attach_domain(), so we should only
print domain id for static identity domain after calling
iommu_attach_domain(si_domain, iommu), otherwise it's always zero.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 7bddb9b32da8..01922be564ca 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -2248,8 +2248,6 @@ static int __init si_domain_init(int hw) | |||
2248 | if (!si_domain) | 2248 | if (!si_domain) |
2249 | return -EFAULT; | 2249 | return -EFAULT; |
2250 | 2250 | ||
2251 | pr_debug("Identity mapping domain is domain %d\n", si_domain->id); | ||
2252 | |||
2253 | for_each_active_iommu(iommu, drhd) { | 2251 | for_each_active_iommu(iommu, drhd) { |
2254 | ret = iommu_attach_domain(si_domain, iommu); | 2252 | ret = iommu_attach_domain(si_domain, iommu); |
2255 | if (ret) { | 2253 | if (ret) { |
@@ -2264,6 +2262,8 @@ static int __init si_domain_init(int hw) | |||
2264 | } | 2262 | } |
2265 | 2263 | ||
2266 | si_domain->flags = DOMAIN_FLAG_STATIC_IDENTITY; | 2264 | si_domain->flags = DOMAIN_FLAG_STATIC_IDENTITY; |
2265 | pr_debug("IOMMU: identity mapping domain is domain %d\n", | ||
2266 | si_domain->id); | ||
2267 | 2267 | ||
2268 | if (hw) | 2268 | if (hw) |
2269 | return 0; | 2269 | return 0; |