commit: 7b668357810ecb5fdda4418689d50f5d95aea6a8 From: Alex Williamson <[email protected]> Date: Tue, 24 May 2011 12:02:41 +0100 Subject: [PATCH] intel-iommu: Flush unmaps at domain_exit
We typically batch unmaps to be lazily flushed out at regular intervals. When we destroy a domain, we need to force a flush of these lazy unmaps to be sure none reference the domain we're about to free. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=35062 Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: David Woodhouse <[email protected]> Cc: [email protected] --- drivers/pci/intel-iommu.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 4e4e020..395f253 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c @@ -1422,6 +1422,10 @@ static void domain_exit(struct dmar_domain *domain) if (!domain) return; + /* Flush any lazy unmaps that may reference this domain */ + if (!intel_iommu_strict) + flush_unmaps_timeout(0); + domain_remove_dev_info(domain); /* destroy iovas */ put_iova_domain(&domain->iovad); _______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
