diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-05-26 21:36:33 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-06-09 18:48:38 +0300 |
commit | 05b782ab951a896d7da41775999821f692dc9e01 (patch) | |
tree | 72bec64a713b0f1c4f2acd2cc6722ce9dab3c297 /virt/kvm/iommu.c | |
parent | 69325a122580d3a7b26589e8efdd6663001c3297 (diff) | |
download | linux-05b782ab951a896d7da41775999821f692dc9e01.tar.bz2 |
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>
Diffstat (limited to 'virt/kvm/iommu.c')
-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, 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 */ |