diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-05-26 15:36:33 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-06-09 11:48:38 -0400 |
commit | 05b782ab951a896d7da41775999821f692dc9e01 (patch) | |
tree | 72bec64a713b0f1c4f2acd2cc6722ce9dab3c297 | |
parent | 69325a122580d3a7b26589e8efdd6663001c3297 (diff) |
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>
-rw-r--r-- | virt/kvm/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index d2f06be63354..96048ee9e39e 100644 --- a/virt/kvm/iommu.c +++ b/virt/kvm/iommu.c | |||
@@ -271,7 +271,7 @@ static void kvm_iommu_put_pages(struct kvm *kvm, | |||
271 | pfn = phys >> PAGE_SHIFT; | 271 | pfn = phys >> PAGE_SHIFT; |
272 | 272 | ||
273 | /* Unmap address from IO address space */ | 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 | unmap_pages = 1ULL << order; | 275 | unmap_pages = 1ULL << order; |
276 | 276 | ||
277 | /* Unpin all pages we just unmapped to not leak any memory */ | 277 | /* Unpin all pages we just unmapped to not leak any memory */ |