From: Jan Kiszka Date: Wed, 26 May 2010 19:36:33 +0000 (+0200) Subject: KVM: Fix order passed to iommu_unmap X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=90a49e22c05e1c5035943a293c7758c7999d8a76;p=users%2Fdwmw2%2Flinux.git KVM: Fix order passed to iommu_unmap This is obviously a left-over from the the old interface taking the size. Apparently a mostly harmless issue with the current iommu_unmap implementation. Signed-off-by: Jan Kiszka Acked-by: Joerg Roedel Signed-off-by: Avi Kivity --- diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index 5adc5780efd0f..673c88a8efe92 100644 --- a/virt/kvm/iommu.c +++ b/virt/kvm/iommu.c @@ -273,7 +273,7 @@ static void kvm_iommu_put_pages(struct kvm *kvm, pfn = phys >> PAGE_SHIFT; /* Unmap address from IO address space */ - order = iommu_unmap(domain, gfn_to_gpa(gfn), PAGE_SIZE); + order = iommu_unmap(domain, gfn_to_gpa(gfn), 0); unmap_pages = 1ULL << order; /* Unpin all pages we just unmapped to not leak any memory */