Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2125668ybi; Thu, 4 Jul 2019 05:37:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+E5241QXFNeJHDJQNWgNMyOLWeGmOzxOws4WRAjPUMGrnTs9AZYMYlIi2sLBjNNX4mGcS X-Received: by 2002:a17:902:da4:: with SMTP id 33mr45020501plv.209.1562243851525; Thu, 04 Jul 2019 05:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562243851; cv=none; d=google.com; s=arc-20160816; b=YO5tIwqoIzwAOn+zPyDgKvTmPoOPOKsw2kO6a7UbQB30Ud1zxu/er2YxujZdxGBbgn kDCTSrMhH/S/Vk0s58xF2AIXd+7YYZa3cn5Z/c/cZhG+DgnRxRLyMzv18yt7XQHYuOan gEFWaxSGz0zmhJwd2WgaDGuj2BFq6HbATFfYicC+h+xG0mIupq34gmKuGtLkFNHi4RL+ 5ELog03y6BssIIB/TtC4QJ57ixN972nKzOqqYty+p2HfZJUdurhVW27USrEjFqXB7Wx7 7k2X4PwZG7aMBEdqhOHd3rWOXlbPSClN2SeBl7LpyJuTBEoGoOTdOKpKeX4IxK1iEa2X 71jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=dF8fv4xtTvoRH5pBsN9JGjkikHD8tjjpPykF/hqfhKg=; b=BWaGqrjyOrZ6JxSGTQZu/aq+36XSNO6XsmJFQ0WWmBa66tIP4LcvPWACAFaY3WXByu N8BlYu6nuBXu+3sEe5lpPoDFIslLQf8OP+pPM4z/K89hHo4uwBdO829TABycs3h4gP2F mXfpMimNvhFwJ64ZQeCcHNwJNUQTg24LZi33+iC0AlXT+ePEYOkBfQFR7TDSRIInbWl7 RbyFSfv1gv/AslZ4xMWq9Wed8z7xbf0YaSRFXng1nrb2GknNebPLLayoDxxfzPu+csVD v5sf2d4kHCx5joX31eqJ6PoYENXl5ulUVDUC1tOJy3VI4z5IThGUCiapz2ROJr3rd8af PfDw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si5336328plg.353.2019.07.04.05.37.16; Thu, 04 Jul 2019 05:37:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbfGDMge convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Jul 2019 08:36:34 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:33050 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727686AbfGDMgd (ORCPT ); Thu, 4 Jul 2019 08:36:33 -0400 Received: from lhreml709-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id E916422570C208935E2E; Thu, 4 Jul 2019 13:36:31 +0100 (IST) Received: from LHREML524-MBS.china.huawei.com ([169.254.2.154]) by lhreml709-cah.china.huawei.com ([10.201.108.32]) with mapi id 14.03.0415.000; Thu, 4 Jul 2019 13:36:24 +0100 From: Shameerali Kolothum Thodi To: Alex Williamson CC: "eric.auger@redhat.com" , "pmorel@linux.vnet.ibm.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Linuxarm , "John Garry" , "xuwei (O)" , "kevin.tian@intel.com" Subject: RE: [PATCH v7 1/6] vfio/type1: Introduce iova list and add iommu aperture validity check Thread-Topic: [PATCH v7 1/6] vfio/type1: Introduce iova list and add iommu aperture validity check Thread-Index: AQHVLDHPKQQdUzHkf0S0a1+iQm67I6a5VDgAgAEdS/A= Date: Thu, 4 Jul 2019 12:36:24 +0000 Message-ID: <5FC3163CFD30C246ABAA99954A238FA83F2DDB26@lhreml524-mbs.china.huawei.com> References: <20190626151248.11776-1-shameerali.kolothum.thodi@huawei.com> <20190626151248.11776-2-shameerali.kolothum.thodi@huawei.com> <20190703143418.34a0f1c6@x1.home> In-Reply-To: <20190703143418.34a0f1c6@x1.home> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.206.221] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Alex Williamson [mailto:alex.williamson@redhat.com] > Sent: 03 July 2019 21:34 > To: Shameerali Kolothum Thodi > Cc: eric.auger@redhat.com; pmorel@linux.vnet.ibm.com; > kvm@vger.kernel.org; linux-kernel@vger.kernel.org; > iommu@lists.linux-foundation.org; Linuxarm ; John > Garry ; xuwei (O) ; > kevin.tian@intel.com > Subject: Re: [PATCH v7 1/6] vfio/type1: Introduce iova list and add iommu > aperture validity check > > > Welcome back Shameer ;) Thanks Alex :) > > 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, > Yes it is. I will fix it. Thanks, Shameer > Alex