aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2014-07-11 02:19:26 -0400
committerJoerg Roedel <jroedel@suse.de>2014-07-23 10:04:46 -0400
commit18fd779a41eff52b597bd2d327194f98a83de4af (patch)
tree36064561ba498644e21bc169fa353dc9da4efcd0 /drivers/iommu/intel-iommu.c
parentc3b497c6bb51a2be1173cbf1d1ef4ce5e88e722e (diff)
iommu/vt-d: Use correct domain id to flush virtual machine domains
For virtual machine domains, domain->id is a virtual id, and the real domain id written into context entry is dynamically allocated. So use the real domain id instead of domain->id when flushing iotlbs for virtual machine domains. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 147ab1c0b573..d77009bdade5 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -1822,7 +1822,7 @@ static int domain_context_mapping_one(struct dmar_domain *domain,
1822 (((u16)bus) << 8) | devfn, 1822 (((u16)bus) << 8) | devfn,
1823 DMA_CCMD_MASK_NOBIT, 1823 DMA_CCMD_MASK_NOBIT,
1824 DMA_CCMD_DEVICE_INVL); 1824 DMA_CCMD_DEVICE_INVL);
1825 iommu->flush.flush_iotlb(iommu, domain->id, 0, 0, DMA_TLB_DSI_FLUSH); 1825 iommu->flush.flush_iotlb(iommu, id, 0, 0, DMA_TLB_DSI_FLUSH);
1826 } else { 1826 } else {
1827 iommu_flush_write_buffer(iommu); 1827 iommu_flush_write_buffer(iommu);
1828 } 1828 }