From patchwork Wed May 26 19:36:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 102477 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4QJaetY005416 for ; Wed, 26 May 2010 19:36:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756149Ab0EZTgf (ORCPT ); Wed, 26 May 2010 15:36:35 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:50424 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755541Ab0EZTgf (ORCPT ); Wed, 26 May 2010 15:36:35 -0400 Received: from smtp07.web.de ( [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 3A67B1631CD3D; Wed, 26 May 2010 21:36:34 +0200 (CEST) Received: from [88.65.252.165] (helo=[192.168.1.10]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1OHMP4-0001IP-00; Wed, 26 May 2010 21:36:34 +0200 Message-ID: <4BFD7841.9060302@web.de> Date: Wed, 26 May 2010 21:36:33 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Avi Kivity , Marcelo Tosatti CC: kvm , Joerg Roedel , Zachary Amsden Subject: [PATCH v2] KVM: Fix order passed to iommu_unmap References: <4BFD7686.2030109@web.de> In-Reply-To: <4BFD7686.2030109@web.de> X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1/yJWfVKj2y77p9xNtjESakotBl43UK5kkAvSpb wkTaiegfVEZxS+6kJywZsIq2OnXKaUNykKYWZjtWA+8UQoui9S pTUdf5ztY= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 26 May 2010 19:36:41 +0000 (UTC) diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index 5adc578..673c88a 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), 0); unmap_pages = 1ULL << order; /* Unpin all pages we just unmapped to not leak any memory */