vt-d: Fix iommu_map_page().

Signed-off-by: Weidong Han <weidong.han@intel.com>
This commit is contained in:
Keir Fraser committed 2007-11-25 09:23:02 +00:00
1 parent 6335a36da1
commit 727f3fd5fa
1 file changed
+1 -1
+1 -1
View File
@@ -1464,7 +1464,7 @@ int iommu_map_page(struct domain *d, paddr_t gfn, paddr_t mfn)
if ( !pg )
return -ENOMEM;
pte = (struct dma_pte *)map_domain_page(page_to_mfn(pg));
pte += mfn & LEVEL_MASK;
pte += gfn & LEVEL_MASK;
dma_set_pte_addr(*pte, mfn << PAGE_SHIFT_4K);
dma_set_pte_prot(*pte, DMA_PTE_READ | DMA_PTE_WRITE);
iommu_flush_cache_entry(iommu, pte);
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.