vtd: no need to flush iotlb or write buffer in iommu_page_mapping().

Signed-off-by: Weidong Han <weidong.han@intel.com>
This commit is contained in:
Keir Fraser committed 2008-07-23 09:59:21 +01:00
1 parent 597683c799
commit 9cd4e059ae
1 file changed
+1 -18
+1 -18
View File
@@ -1523,9 +1523,6 @@ int intel_iommu_unmap_page(struct domain *d, unsigned long gfn)
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 *domain, paddr_t iova,
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 domain *d, u8 bus, u8 devfn)
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;
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.