Skip to content

Commit

Permalink
KVM: Fix order passed to iommu_unmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jan-kiszka authored and avikivity committed Jun 9, 2010
1 parent 69325a1 commit 05b782a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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 */
Expand Down

0 comments on commit 05b782a

Please sign in to comment.