Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1325067ybi; Wed, 3 Jul 2019 13:37:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwowxEaawm5DucuZPAJ95Jv1BIHtUoDeuKq1knu+ZPnNFcGxTv1tQwh5gbt5ZORuT9ALb7x X-Received: by 2002:a17:90a:28e4:: with SMTP id f91mr14467630pjd.99.1562186226355; Wed, 03 Jul 2019 13:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562186226; cv=none; d=google.com; s=arc-20160816; b=pQYv15etgNfdnzLDs7zPNnycN365u3G1F2fNyyRZlXzWNSvRiPLI7gVzhrLBnVwFH4 +pv5caUZo4bjhytj6wK8PBpzNDxlsLHUvLwz4QJc9ySfTh3g2erCWyPM6lxxnY5ee40l oJ4ILplAmMMyBgzF2CDBtc1FMoFZhFjzrT2CO2wROMapWUnDzJnnQe5ApgAaMkMAhFJk ZCapuCfr6k60/P5EydEMc01EdtlcEAJHKIuV+OQC1e+rscFxrlGe/pO0FOqsH/xMUcaz +XmpQXCe8ax5+Ook+7jBvmGG6WM7NZAy6zwYNKD8gFqxe4EF5b6Wzj+yyewzZKs7nB7i oNig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=SOThBJXL+T4yTsPN8JGdCgmTKGQ4RVC1J6FNlEdAMLM=; b=YbCG1aI5IY87807ZViItrv8URo6YvKTdaisRcreW+Cqj/Z7GLq9Qh+BxDIbom+nJcR c73H+8ChQALGaMp6byY7XgHwq9Pitge46b1TJjqO7Oe6PYfK2n5GN9jZnkxEfVw+IKt1 oTEizGQ7FJEoj4OCh3quM0WmdTWt0be2m/YwPcd8uK5SYBt9xRgr48zFH6EpKy1+zyYE 1oqfaAmwvHpd+RkvgXM/hqyJiApVyx+EXzfvgza1l+qkDK9UyY5WmcO+jXjCSX+BVFsO yLy92Sa+6uEiC3vaZ+BrvdDz1ywlU/LvbmXVPiNIZiovIE1vrPsHZt2J9zk9VjEe8DiA 310A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si3259438pfb.176.2019.07.03.13.36.50; Wed, 03 Jul 2019 13:37:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727391AbfGCUeg (ORCPT + 99 others); Wed, 3 Jul 2019 16:34:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51212 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbfGCUef (ORCPT ); Wed, 3 Jul 2019 16:34:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC912C04D2F7; Wed, 3 Jul 2019 20:34:26 +0000 (UTC) Received: from x1.home (ovpn-116-83.phx2.redhat.com [10.3.116.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9A46517AB4; Wed, 3 Jul 2019 20:34:18 +0000 (UTC) Date: Wed, 3 Jul 2019 14:34:18 -0600 From: Alex Williamson To: Shameer Kolothum Cc: , , , , , , , , Subject: Re: [PATCH v7 1/6] vfio/type1: Introduce iova list and add iommu aperture validity check Message-ID: <20190703143418.34a0f1c6@x1.home> In-Reply-To: <20190626151248.11776-2-shameerali.kolothum.thodi@huawei.com> References: <20190626151248.11776-1-shameerali.kolothum.thodi@huawei.com> <20190626151248.11776-2-shameerali.kolothum.thodi@huawei.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 03 Jul 2019 20:34:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Welcome back Shameer ;) On Wed, 26 Jun 2019 16:12:43 +0100 Shameer Kolothum wrote: > This introduces an iova list that is valid for dma mappings. Make > sure the new iommu aperture window doesn't conflict with the current > one or with any existing dma mappings during attach. > > Signed-off-by: Shameer Kolothum > --- > drivers/vfio/vfio_iommu_type1.c | 181 +++++++++++++++++++++++++++++++- > 1 file changed, 177 insertions(+), 4 deletions(-) > > diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c > index add34adfadc7..970d1ec06aed 100644 > --- a/drivers/vfio/vfio_iommu_type1.c > +++ b/drivers/vfio/vfio_iommu_type1.c > @@ -1,4 +1,3 @@ > -// SPDX-License-Identifier: GPL-2.0-only > /* > * VFIO: IOMMU DMA mapping support for Type1 IOMMU > * Accidental merge deletion? Thanks, Alex