# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1216803561 -3600
# Node ID 2ba91f7495aed7d7a34b2d8fc60ddcd2869ce5c7
# Parent ba6be1571cc628298c5a0666f261b660fdcaeac0
vtd: no need to flush iotlb or write buffer in iommu_page_mapping().
Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
xen/drivers/passthrough/vtd/iommu.c | 19 +------------------
1 files changed, 1 insertion(+), 18 deletions(-)
diff -r ba6be1571cc6 -r 2ba91f7495ae xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Wed Jul 23 09:58:48 2008 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c Wed Jul 23 09:59:21 2008 +0100
@@ -1523,9 +1523,6 @@ int iommu_page_mapping(struct domain *do
int iommu_page_mapping(struct domain *domain, paddr_t iova,
paddr_t hpa, size_t size, int prot)
{
- struct hvm_iommu *hd = domain_hvm_iommu(domain);
- struct acpi_drhd_unit *drhd;
- struct iommu *iommu;
u64 start_pfn, end_pfn;
struct dma_pte *page = NULL, *pte = NULL;
int index;
@@ -1553,18 +1550,6 @@ int iommu_page_mapping(struct domain *do
index++;
}
- for_each_drhd_unit ( drhd )
- {
- iommu = drhd->iommu;
-
- if ( !test_bit(iommu->index, &hd->iommu_bitmap) )
- continue;
-
- if ( iommu_flush_iotlb_psi(iommu, domain_iommu_domid(domain),
- iova, index, 1) )
- iommu_flush_write_buffer(iommu);
- }
-
return 0;
}
@@ -1803,11 +1788,9 @@ int intel_iommu_assign_device(struct dom
ret = iommu_prepare_rmrr_dev(d, rmrr, bus, devfn);
if ( ret )
- {
gdprintk(XENLOG_ERR VTDPREFIX,
"IOMMU: mapping reserved region failed\n");
- return ret;
- }
+ return ret;
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|