Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp596361ybb; Wed, 1 Apr 2020 06:16:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtvqWqjrXbRXjLXALCLlQ8xTLMhsgj5qzmqw+NR7U6A/jrGxiNUczRBrMQN5k3hdqEQrQhV X-Received: by 2002:a05:6830:19c7:: with SMTP id p7mr17862025otp.79.1585746967643; Wed, 01 Apr 2020 06:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585746967; cv=none; d=google.com; s=arc-20160816; b=AkLEPctRoWmQ18kF6TXOsE22+6ZIA7ejxtOjwPZ9GT+aaYiISTFIqx03sR4vL3WqdC fTKEe+81IckSql6VjuQaIFt2R8w3U9VaUH0ObajjDyq3KcAez7ntyBpCyHjWG156uUSb SJnKQ9+yBch5Q+ejINZzracMpYf1XCHRNksXxVEVdci9gYrxngWpE2ziynrSVJHTRwlk 42Se/b0SqqwRCMEB2OfVu/MKZmgisoVpbywvRLaiGa7f3c5bdyi27Hn7Ve9O6yR+63ed hjBNqXoTJv44ZuYp17jyttMYvB1DcpWO2Jpmdq7qEA6xbLVgylS3aSZPo8lM0yHGJswU BS4w== 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=g3faO2hWUEg4fzLURNqEsXxZ1XFvsE0wh91pxW+B1WE=; b=V6Je/e6FPB77prpZ9Y1sfO/BnF8Kg0FndcNLhy0y/bn9ZQxGUUiiJ2xGaBHIO35MpM XfODeCZDbvYAPTRm+2vfzdE2b6W2dU2DH5HN6moGRaUIdkVzCJAtDf+taryqmPjzUqSk qrsWgiNiJ4QPZ3SxlX76JrmfxjUuCRQGJNLQG2OkwXOZygk2x8A2BOJZEJokBGLnoKq6 Y9eEii7LHimrCJMm2B9hfFxAuoXvFL+NHSBTW4YkVbEZuvpjM/BQwbRZPjcy5cFPYfuJ oUzcQHwzdN3u3P7sJu01lu7NwelR22Pw/e5VgnRYwtfTQrvLt4tfuaRJP/QiHmO23N0w RUqg== 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 109si836977otv.36.2020.04.01.06.15.47; Wed, 01 Apr 2020 06:16:07 -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 S1732587AbgDANOA (ORCPT + 99 others); Wed, 1 Apr 2020 09:14:00 -0400 Received: from mga03.intel.com ([134.134.136.65]:40967 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732439AbgDANOA (ORCPT ); Wed, 1 Apr 2020 09:14:00 -0400 IronPort-SDR: AY5xfFEq/CCVKecAfh6tz433tmtIfFRGbE522/ujSHAm4F6/AEv5DvEeiFt6UoIqQxWtnqJl2g nBGeGqt2BPQw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 06:13:59 -0700 IronPort-SDR: rZNdtC/kYipPD2Ebjt/Fz5xT+31tfE0O32t4WmAu6TY4ZirdoB03QiwzWTZF7D3dDO40r9csoJ MErX6EAbTlbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="295328694" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 01 Apr 2020 06:13:58 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 06:13:58 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 06:13:58 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.225]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.209]) with mapi id 14.03.0439.000; Wed, 1 Apr 2020 21:13:54 +0800 From: "Liu, Yi L" To: Auger Eric , "alex.williamson@redhat.com" CC: "Tian, Kevin" , "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 3/8] vfio/type1: Report PASID alloc/free support to userspace Thread-Topic: [PATCH v1 3/8] vfio/type1: Report PASID alloc/free support to userspace Thread-Index: AQHWAEUdmZ6qeWVhq0GPreoHiPHgtahjjLGAgAC7stA= Date: Wed, 1 Apr 2020 13:13:53 +0000 Message-ID: References: <1584880325-10561-1-git-send-email-yi.l.liu@intel.com> <1584880325-10561-4-git-send-email-yi.l.liu@intel.com> <1b720777-8334-936e-5edb-802b3dae7b05@redhat.com> In-Reply-To: <1b720777-8334-936e-5edb-802b3dae7b05@redhat.com> 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 SGkgRXJpYywNCg0KPiBGcm9tOiBBdWdlciBFcmljIDxlcmljLmF1Z2VyQHJlZGhhdC5jb20+DQo+ IFNlbnQ6IFdlZG5lc2RheSwgQXByaWwgMSwgMjAyMCA1OjQxIFBNDQo+IFRvOiBMaXUsIFlpIEwg PHlpLmwubGl1QGludGVsLmNvbT47IGFsZXgud2lsbGlhbXNvbkByZWRoYXQuY29tDQo+IFN1Ympl Y3Q6IFJlOiBbUEFUQ0ggdjEgMy84XSB2ZmlvL3R5cGUxOiBSZXBvcnQgUEFTSUQgYWxsb2MvZnJl ZSBzdXBwb3J0IHRvDQo+IHVzZXJzcGFjZQ0KPiANCj4gWWksDQo+IE9uIDMvMjIvMjAgMTozMiBQ TSwgTGl1LCBZaSBMIHdyb3RlOg0KPiA+IEZyb206IExpdSBZaSBMIDx5aS5sLmxpdUBpbnRlbC5j b20+DQo+ID4NCj4gPiBUaGlzIHBhdGNoIHJlcG9ydHMgUEFTSUQgYWxsb2MvZnJlZSBhdmFpbGFi aWxpdHkgdG8gdXNlcnNwYWNlIChlLmcuDQo+ID4gUUVNVSkgdGh1cyB1c2Vyc3BhY2UgY291bGQg ZG8gYSBwcmUtY2hlY2sgYmVmb3JlIHV0aWxpemluZyB0aGlzIGZlYXR1cmUuDQo+ID4NCj4gPiBD YzogS2V2aW4gVGlhbiA8a2V2aW4udGlhbkBpbnRlbC5jb20+DQo+ID4gQ0M6IEphY29iIFBhbiA8 amFjb2IuanVuLnBhbkBsaW51eC5pbnRlbC5jb20+DQo+ID4gQ2M6IEFsZXggV2lsbGlhbXNvbiA8 YWxle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