]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: Fix order passed to iommu_unmap
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 26 May 2010 19:36:33 +0000 (21:36 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 27 May 2010 12:40:09 +0000 (15:40 +0300)
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 <jan.kiszka@siemens.com>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/iommu.c

index 5adc5780efd0faa92f262f6c91fa9cc9fd57c54c..673c88a8efe92dab9dfc0435d8b8f355118b7ddd 100644 (file)
@@ -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 */