Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6416018ybi; Mon, 8 Jul 2019 02:45:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBsXraORtN4mQhd5Fi8jjVgikie0e9Z24jjKcxs3hmH4mGLDEe9obh9XBt9crsUWc35JAG X-Received: by 2002:a17:90a:8c92:: with SMTP id b18mr23650862pjo.97.1562579151363; Mon, 08 Jul 2019 02:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562579151; cv=none; d=google.com; s=arc-20160816; b=mu3Rwselzd4JCs9xGTnl1V0JXiL4mZq4jpLh3hIk0X8y6R+tZupXRWYknSBhhbktwL yZdJ9hH55Gxlzv5wfWDMct5pGDXVwN0leRIQqTCLWAPipPeMqTQWs6FYB7G54px3sWaS USKuz9/FjhwIDF+xECoqg6MDiX16I/ZfD7FzAqWFNZvB2piZ+Uaa8CPkDU0BxsIawGZ8 1/Rm92EA0IusSzzISSjku0od95oJ0HKmB/DFuy+VUyiAdr4OmMVNX0GqzcQtier4WdA5 uobVbwbUR0Ejj7kT+NX0FWXmFmCYb4QzNEovoPK3iQ1TjFjIbeiNboqck5LmiVdFkwRx 1dDQ== 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=TJZRNoqq5HqN2qwLQS56xedgBiogQVWGTYhD9sjtCt4=; b=FjCzjouqqg/pm/KgC/qfiw1mi0Js40DnFMhjU+fJJzEytrRgpCeBIijXLhVPxuE2NM Wr8lp7L6UJF6kbRssKRVu3PNZrCvStxMac38a9TDvads2DcSM72lbhaGEKaVYnLR1Tkh QPhHt361DJG8R0HHKBgGgxPIJwzeMARhoSiffpgSNG4gG98Z6LM8PV8dUOCa65l1rqCw 2DG/KEIimVMG3FDwDLYEktNglSzitFu9V04ztkieAK4nwkng9vcE3YlCeEPBt5Oj0Ybu R35BcMy+V6rd2NUTVRdUrNic73Gv4L9ffEiMtZ9lhoPud2TT1z7sH8RygfWIKEVuaqLx yIQw== 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 z15si11880443pgl.316.2019.07.08.02.45.21; Mon, 08 Jul 2019 02:45:51 -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 S1729247AbfGHG7v (ORCPT + 99 others); Mon, 8 Jul 2019 02:59:51 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:33058 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729189AbfGHG7v (ORCPT ); Mon, 8 Jul 2019 02:59:51 -0400 Received: from lhreml703-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 2CD05F0471F05A2FC7B9; Mon, 8 Jul 2019 07:59:49 +0100 (IST) Received: from LHREML524-MBS.china.huawei.com ([169.254.2.154]) by lhreml703-cah.china.huawei.com ([10.201.108.44]) with mapi id 14.03.0415.000; Mon, 8 Jul 2019 07:59:40 +0100 From: Shameerali Kolothum Thodi To: Auger Eric , Alex Williamson CC: "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 2/6] vfio/type1: Check reserve region conflict and update iova list Thread-Topic: [PATCH v7 2/6] vfio/type1: Check reserve region conflict and update iova list Thread-Index: AQHVLDHlfv32Tq6P8k2BSud+nbtQFqa5VEOAgAEf3kCAAXe2AIAEcOwg Date: Mon, 8 Jul 2019 06:59:39 +0000 Message-ID: <5FC3163CFD30C246ABAA99954A238FA83F2E198C@lhreml524-mbs.china.huawei.com> References: <20190626151248.11776-1-shameerali.kolothum.thodi@huawei.com> <20190626151248.11776-3-shameerali.kolothum.thodi@huawei.com> <20190703143427.2d63c15f@x1.home> <5FC3163CFD30C246ABAA99954A238FA83F2DDB68@lhreml524-mbs.china.huawei.com> In-Reply-To: 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="utf-8" Content-Transfer-Encoding: base64 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 SGkgRXJpYw0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEF1Z2VyIEVy aWMgW21haWx0bzplcmljLmF1Z2VyQHJlZGhhdC5jb21dDQo+IFNlbnQ6IDA1IEp1bHkgMjAxOSAx MzoxMA0KPiBUbzogU2hhbWVlcmFsaSBLb2xvdGh1bSBUaG9kaSA8c2hhbWVlcmFsaS5rb2xvdGh1 bS50aG9kaUBodWF3ZWkuY29tPjsNCj4gQWxleCBXaWxsaWFtc29uIDxhbGV4LndpbGxpYW1zb25A cmVkaGF0LmNvbT4NCj4gQ2M6IGt2bUB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2Z2Vy Lmtlcm5lbC5vcmc7DQo+IGlvbW11QGxpc3RzLmxpbnV4LWZvdW5kYXRpb24ub3JnOyBMaW51eGFy bSA8bGludXhhcm1AaHVhd2VpLmNvbT47IEpvaG4NCj4gR2FycnkgPGpvaG4uZ2FycnlAaHVhd2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