summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-05-08 10:33:38 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-05-10 15:55:09 +0100
commitfa3b6dcd5298db2e7b63c17795c9e5570d3df8d9 (patch)
tree21287f8aaf7bf444f43b041f45e47a29a9203d4d /drivers/pci
parentaed5d5f4c5ea5da01a774e42cff08c4b4fa59072 (diff)
downloadop-kernel-dev-fa3b6dcd5298db2e7b63c17795c9e5570d3df8d9.zip
op-kernel-dev-fa3b6dcd5298db2e7b63c17795c9e5570d3df8d9.tar.gz
VT-d: fix invalid domain id for KVM context flush
The domain->id is a sequence number associated with the KVM guest and should not be used for the context flush. This patch replaces the domain->id with a proper id value for both bare metal and KVM. Signed-off-by: Yu Zhao <yu.zhao@intel.com> Acked-by: Weidong Han <weidong.han@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/intel-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index d3edd6aa..d6f4ee5 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -1429,7 +1429,7 @@ static int domain_context_mapping_one(struct dmar_domain *domain, int segment,
domain_flush_cache(domain, context, sizeof(*context));
/* it's a non-present to present mapping */
- if (iommu->flush.flush_context(iommu, domain->id,
+ if (iommu->flush.flush_context(iommu, id,
(((u16)bus) << 8) | devfn, DMA_CCMD_MASK_NOBIT,
DMA_CCMD_DEVICE_INVL, 1))
iommu_flush_write_buffer(iommu);
OpenPOWER on IntegriCloud