Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6444091ybi; Mon, 8 Jul 2019 03:10:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtH8b6CtdfUPXgkVNo4UNPCqQJA/7Q4Ca5KnRVwKTxaAcff8vCY2EMaR3kvfMYPloEFktZ X-Received: by 2002:a17:902:e282:: with SMTP id cf2mr23826615plb.301.1562580652310; Mon, 08 Jul 2019 03:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562580652; cv=none; d=google.com; s=arc-20160816; b=ODjohs0PM++P/0CZEsRUqUR1Xtp0ChD1F33WFgpT8dmwVTg9yBoDjwNMyrPysZ9rLO ETPJWKQe7/y7H9GIjrIQRNVD3Y8NHLwk+0FXmv3ktKrIv5BdGtdopd8Lf6mqD/9E3et8 zjF+L+Wlo0WmJop63tnsMa/1VJHmvbYnLe0Zsplk7paOW5P0PiAw/wqdsuwuKXZ5BIWg U6P2e4N0Qwd/KV9r4s9x0PpXOAvZw9Jc5stbGsHxtcy/nDQRMJ0fqp3BrYr0qN9Vu7Ft uHE9U/bBRuvjK1ChmQJ4g5VIwtZfutGN7nWK1ut7AUxgAh7moI/6BbyUcv5EvJMIvOYU KaBg== 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=S2QtLfq1i2gpPdkjvyGk03Y0EmHI/h1irFDrcWGRVH4=; b=I7O4CdOEjFFCFelQwdAeU8ZYhVp9bseYmaeK6zh9jZUB5earbj6d1JYiwA/QxzLNjo 53cS/sXb7aHXl/CPHxq+BEmnRNi97gVdBeNfPh2jmuEVKcs8G8kCwEoaYH3Z/W1LIcZ6 r6+ZsMg1VBrAx173s4aPiQWWB+ZJL+QXRAz8qfJup/l9mriN9IKXlHqUawflpkWi1Ew8 K5t6edJft1k60NxsfENz9dmBY0E40cLN6jm2jf/lA+oWFcNDpLsk/WEAQXzfWD3FPOYA mbijOq8CEHZy32tWMW00uOBR8mKnfvXahfhpZbsVwEy0WYnPy2XEguohMqc5pt8w6DY9 3kew== 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 v7si19649299pfb.132.2019.07.08.03.10.36; Mon, 08 Jul 2019 03:10:52 -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 S1729361AbfGHHLA (ORCPT + 99 others); Mon, 8 Jul 2019 03:11:00 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:33060 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726684AbfGHHLA (ORCPT ); Mon, 8 Jul 2019 03:11:00 -0400 Received: from lhreml701-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 8199DD30215B82A241FA; Mon, 8 Jul 2019 08:10:58 +0100 (IST) Received: from LHREML524-MBS.china.huawei.com ([169.254.2.154]) by lhreml701-cah.china.huawei.com ([10.201.108.42]) with mapi id 14.03.0415.000; Mon, 8 Jul 2019 08:10:51 +0100 From: Shameerali Kolothum Thodi To: Auger Eric , "alex.williamson@redhat.com" 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 3/6] vfio/type1: Update iova list on detach Thread-Topic: [PATCH v7 3/6] vfio/type1: Update iova list on detach Thread-Index: AQHVLDHlzsp7WZ6o0k2WlwGboVZ1gKa/QQsAgAEeOtA= Date: Mon, 8 Jul 2019 07:10:51 +0000 Message-ID: <5FC3163CFD30C246ABAA99954A238FA83F2E19CB@lhreml524-mbs.china.huawei.com> References: <20190626151248.11776-1-shameerali.kolothum.thodi@huawei.com> <20190626151248.11776-4-shameerali.kolothum.thodi@huawei.com> <3bab52b1-da0f-10fe-34e4-889c74e3caad@redhat.com> In-Reply-To: <3bab52b1-da0f-10fe-34e4-889c74e3caad@redhat.com> 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 SGkgRXJpYywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBdWdlciBF cmljIFttYWlsdG86ZXJpYy5hdWdlckByZWRoYXQuY29tXQ0KPiBTZW50OiAwNyBKdWx5IDIwMTkg MTY6MDMNCj4gVG86IFNoYW1lZXJhbGkgS29sb3RodW0gVGhvZGkgPHNoYW1lZXJhbGkua29sb3Ro dW0udGhvZGlAaHVhd2VpLmNvbT47DQo+IGFsZXgud2lsbGlhbXNvbkByZWRoYXQuY29tOyBwbW9y ZWxAbGludXgudm5ldC5pYm0uY29tDQo+IENjOiBrdm1Admdlci5rZXJuZWwub3JnOyBsaW51eC1r ZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBpb21tdUBsaXN0cy5saW51eC1mb3VuZGF0aW9uLm9y ZzsgTGludXhhcm0gPGxpbnV4YXJtQGh1YXdlaS5jb20+OyBKb2huDQo+IEdhcnJ5IDxqb2huLmdh cnJ5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