Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp257843ybb; Tue, 31 Mar 2020 22:45:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsvCCsRNh2cTbH1Fi2+fcllGkQUfOdrwIk/yAPysqWA8t6w+1S6YFdy8vkMDEJHcoRNDPI+ X-Received: by 2002:a9d:1d67:: with SMTP id m94mr15898414otm.140.1585719900630; Tue, 31 Mar 2020 22:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585719900; cv=none; d=google.com; s=arc-20160816; b=sWp705cpFEGVdT3uQhUS5WJ40ZU00kwfNK44tT8kHc03ddu5W1V8ARffCLXjP/57gT OK5cuYGsArR/3+00yetZOJ/mpkuLESSjeSX9QRiLnfaPTCTK2jya+cHs9xYJEcD/xSoz VGYw2AOrnwssPQ4xF2reCdIX5ypd4BGYlJA54mIRxndQzF2EX6h2hoAKogKKZymkAVdv sH2agassSWbvOuU8GTSptR1vau2jYoPDv0h4XILDjwTcRKlY05JyxIgOih+Pm4PJtWNO EYf9/Ae5y9VhMCHWyMsvO/ociMtKgw4hie0oQNmCgDCxLIEylGBr1c39bt3xULNQyeo5 HgbQ== 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 :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=sn0FEeroatdQ2GXThkrFwIqkVy5unWJjUNlXuv691O8=; b=aqshFyyX0+UreWUlCFy+09XrkwQS0RV0eYjPjzRpBV2Alo5hrbDpi2x0Sv6rSMzkeG PAeYenb/j5vB5hJvVw2YqG7ntl6lFyePYzYiKQ65CsYSs0SR9xOqRnhrGwLJFHxgmIVb ZFPkSHFpJWmryLhQipdu3LWvUdhBJHOk9vH2q+8GKNsZo1+SXnHg66QA6q3kIj3o3hLr ZmAuAszaHVfTy912zshlaNMNerTI7qyxRNxZQridy7XqNoTM+/FQvGa+stvYYtRNcxDO wWrQR+9aXxUr5HVQ+kVL6OFvNekFl6FPj8w6rjlz8I3ubVNLzGtFYBtinc00QCAdG+Cb keqA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h81si503707oif.20.2020.03.31.22.44.41; Tue, 31 Mar 2020 22:45:00 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731815AbgDAFnO (ORCPT + 99 others); Wed, 1 Apr 2020 01:43:14 -0400 Received: from mga09.intel.com ([134.134.136.24]:49808 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731712AbgDAFnO (ORCPT ); Wed, 1 Apr 2020 01:43:14 -0400 IronPort-SDR: 5Gpw7zejJO2A3AIFSqzFL/oPAmc/lKd4oNHuiBA9W32PWctgDSt//wUCGqBQe47zAXU2ArcKyY YyECYLAo8dFg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2020 22:43:08 -0700 IronPort-SDR: F6HEDbVsKb9WXsP0zipmbZlD2mvB1Qi0qy6DqzZQI8jGXNa8tknfW08W4PrXfj6nsoQ8lcvYY3 n+X2YzgUr74A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,330,1580803200"; d="scan'208";a="240348989" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 31 Mar 2020 22:43:08 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 31 Mar 2020 22:43:08 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 31 Mar 2020 22:43:08 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.225]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.89]) with mapi id 14.03.0439.000; Wed, 1 Apr 2020 13:43:03 +0800 From: "Tian, Kevin" To: "Liu, Yi L" , "alex.williamson@redhat.com" , "eric.auger@redhat.com" CC: "jacob.jun.pan@linux.intel.com" , "joro@8bytes.org" , "Raj, Ashok" , "Tian, Jun J" , "Sun, Yi Y" , "jean-philippe@linaro.org" , "peterx@redhat.com" , "iommu@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Wu, Hao" Subject: RE: [PATCH v1 1/8] vfio: Add VFIO_IOMMU_PASID_REQUEST(alloc/free) Thread-Topic: [PATCH v1 1/8] vfio: Add VFIO_IOMMU_PASID_REQUEST(alloc/free) Thread-Index: AQHWAEUbvuzF5+3jpEaYhihTFzMRG6hgq7/wgAAO54CAAXyuEIAAAMCAgAGXimA= Date: Wed, 1 Apr 2020 05:43:02 +0000 Message-ID: References: <1584880325-10561-1-git-send-email-yi.l.liu@intel.com> <1584880325-10561-2-git-send-email-yi.l.liu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBMaXUsIFlpIEwgPHlpLmwubGl1QGludGVsLmNvbT4NCj4gU2VudDogVHVlc2RheSwg TWFyY2ggMzEsIDIwMjAgOToyMiBQTQ0KPiANCj4gPiBGcm9tOiBUaWFuLCBLZXZpbiA8a2V2aW4u dGlhbkBpbnRlbC5jb20+DQo+ID4gU2VudDogVHVlc2RheSwgTWFyY2ggMzEsIDIwMjAgMTo0MSBQ TQ0KPiA+IFRvOiBMaXUsIFlpIEwgPHlpLmwubGl1QGludGVsLmNvbT47IGFsZXgud2lsbGlhbXNv bkByZWRoYXQuY29tOw0KPiA+IGVyaWMuYXVnZXJAcmVkaGF0LmNvbQ0KPiA+IFN1YmplY3Q6IFJF OiBbUEFUQ0ggdjEgMS84XSB2ZmlvOiBBZGQNCj4gVkZJT19JT01NVV9QQVNJRF9SRVFVRVNUKGFs bG9jL2ZyZWUpDQo+ID4NCj4gPiA+IEZyb206IExpdSwgWWkgTCA8eWkubC5saXVAaW50ZWwuY29t Pg0KPiA+ID4gU2VudDogTW9uZGF5LCBNYXJjaCAzMCwgMjAyMCAxMDozNyBQTQ0KPiA+ID4NCj4g PiA+ID4gRnJvbTogVGlhbiwgS2V2aW4gPGtldmluLnRpYW5AaW50ZWwuY29tPg0KPiA+ID4gPiBT ZW50OiBNb25kYXksIE1hcmNoIDMwLCAyMDIwIDQ6MzIgUE0NCj4gPiA+ID4gVG86IExpdSwgWWkg TCA8eWkubC5saXVAaW50ZWwuY29tPjsgYWxleC53aWxsaWFtc29uQHJlZGhhdC5jb207DQo+ID4g PiA+IFN1YmplY3Q6IFJFOiBbUEFUQ0ggdjEgMS84XSB2Z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