From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] KVM: Fix order passed to iommu_unmap Date: Wed, 26 May 2010 21:29:10 +0200 Message-ID: <4BFD7686.2030109@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: kvm , Joerg Roedel , Zachary Amsden To: Avi Kivity , Marcelo Tosatti Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:35702 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754281Ab0EZTai (ORCPT ); Wed, 26 May 2010 15:30:38 -0400 Sender: kvm-owner@vger.kernel.org List-ID: From: Jan Kiszka 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 --- 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 5adc578..8b96251 100644 --- a/virt/kvm/iommu.c +++ b/virt/kvm/iommu.c @@ -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), 1); unmap_pages = 1ULL << order; /* Unpin all pages we just unmapped to not leak any memory */ -- 1.6.0.2