Commit 05b782ab951a896d7da41775999821f692dc9e01
Committed by
Avi Kivity
1 parent
69325a1225
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 <jan.kiszka@siemens.com> Acked-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
virt/kvm/iommu.c
... | ... | @@ -271,7 +271,7 @@ |
271 | 271 | pfn = phys >> PAGE_SHIFT; |
272 | 272 | |
273 | 273 | /* Unmap address from IO address space */ |
274 | - order = iommu_unmap(domain, gfn_to_gpa(gfn), PAGE_SIZE); | |
274 | + order = iommu_unmap(domain, gfn_to_gpa(gfn), 0); | |
275 | 275 | unmap_pages = 1ULL << order; |
276 | 276 | |
277 | 277 | /* Unpin all pages we just unmapped to not leak any memory */ |