ia64/xen-unstable
changeset 16458:ce3e5e859d66
vt-d: Fix iommu_map_page().
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Sun Nov 25 09:23:02 2007 +0000 (2007-11-25) |
parents | 9fd36167ecfa |
children | 368bcf480772 |
files | xen/arch/x86/hvm/vmx/vtd/intel-iommu.c |
line diff
1.1 --- a/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c Sat Nov 24 22:33:38 2007 +0000 1.2 +++ b/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c Sun Nov 25 09:23:02 2007 +0000 1.3 @@ -1464,7 +1464,7 @@ int iommu_map_page(struct domain *d, pad 1.4 if ( !pg ) 1.5 return -ENOMEM; 1.6 pte = (struct dma_pte *)map_domain_page(page_to_mfn(pg)); 1.7 - pte += mfn & LEVEL_MASK; 1.8 + pte += gfn & LEVEL_MASK; 1.9 dma_set_pte_addr(*pte, mfn << PAGE_SHIFT_4K); 1.10 dma_set_pte_prot(*pte, DMA_PTE_READ | DMA_PTE_WRITE); 1.11 iommu_flush_cache_entry(iommu, pte);