Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1731654ybh; Mon, 20 Jul 2020 06:01:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT8idtS0uV6Idz02mfPOawzQcMEmJhrN5omChzuTZt8qGq8bwpdk1BJ17kN8C5bdU/ocnP X-Received: by 2002:a05:6402:b4b:: with SMTP id bx11mr20691380edb.286.1595250078002; Mon, 20 Jul 2020 06:01:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595250077; cv=pass; d=google.com; s=arc-20160816; b=JbZSl8j6uSM4Nql5cvfXFG+CwKOSBeIPYor3B+fVaeCJHiL1qFlctKUG4n0o2xGvcp nURkRycZoDI1WWijvkd/73dBL+dgTc0Opf9sKjJgM9VVnfNh+4Jjt4Mba41juCRKTZpu zKXBmJGhHsQO7tm0t3/8iA5pyzEOGQU+6mF8uAykSgp784/T+u0QyyO7aiuxzHbyJr6J rsqF+PMOxgyxxjqRfag7cIHsO30UGXcuuZJg6QZ/iVOuzH8W0KV6JJGh/kU9cyQyk6hD 7co4MxCYoqODOsi2qJjkwiyQXcZDPSeHIjVp/Zc7G5IfO9M6n5QAau6Z4BPtbEyuzX+/ 8XfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-product:dlp-version:dlp-reaction:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :ironport-sdr; bh=pl8vfuW0QH9mxKLIpUOPIjA/vdzixjdaQkifaEZrr0Q=; b=AccIEXg8mwYIqn+U/fGpWUKTy+2jJRjXDPP41rAtCul+qRRk61CHMgHlhuv2rZDJeh DWHFVOEb2bpM5IlfSxmz558BwDOgXPP71BYmfEGfWW4Kr7e90djT1kiJXFF/6T41WE/3 aq2u4Sp34NODOjrLSVGFvwYLuzPbIvvRnEaS3NDaMp+R66krldEHlXMwpTNzOJnS6wC0 N7wMcIGPfj/vYDfLi3hiPmTu0RhNcwzOnOwOcS9dtDbUTYONL8h9CF3+pD8QPPzwil3d T501vQcXkybjlsiKFV7HOUmYYEy6wCJGNvw/wCEzMGynfqXe8/qBH0UC7a7YHzIK6qSJ my9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=PkpoY4R+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i8si10687306edx.405.2020.07.20.06.00.49; Mon, 20 Jul 2020 06:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=PkpoY4R+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727932AbgGTNAf (ORCPT + 99 others); Mon, 20 Jul 2020 09:00:35 -0400 Received: from mga12.intel.com ([192.55.52.136]:21575 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbgGTNAe (ORCPT ); Mon, 20 Jul 2020 09:00:34 -0400 IronPort-SDR: IB29xyGOoF2tMVg/dw0CnhnRSinXFlnwEjzj+YC1ODgNGhDsoDf/r6hhmBVqrDtd4NHkhChZlP AHKHz31UJ27Q== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="129469145" X-IronPort-AV: E=Sophos;i="5.75,375,1589266800"; d="scan'208";a="129469145" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 06:00:17 -0700 IronPort-SDR: JdONsuqgKYK9ARt2Nm5PMCXYydE8D7eK71cXjB3AvmL0zo7Fhg12DhoWVVKJAAIH7QcHRgJOr9 dRUC7R3Sugyw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,375,1589266800"; d="scan'208";a="487233624" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 20 Jul 2020 06:00:17 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 20 Jul 2020 06:00:16 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 20 Jul 2020 06:00:16 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 20 Jul 2020 06:00:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yf+18PMfJsbw4dZuSXjVePkEHZVlferIuJitLFSF3OCP+/OCtPw9QRW7v4dnrl04HJADVi8Le5SRitum8BGD4JkOmutHwzRpB3BwyNddDJt9l888o96GzBAggjWKRPlK43Hv4dX2184zEKnt3xq61i23/0kxeO+lsmXIJi6lZCWYG5x0W4xhmE2f8CxOYQE6ZnH52+fBOXASgQiQUqWIfdY/lob5Cy+9q8m/Vu/iBXScM4fPRxX3etaJEYQShiZi7edZWf7FYfGb/54gPCV3ab3epmwj6CHe7HAI78iIZ+PMJk/1CdbLYnujr5o9PPpjVXcMMz6R5US2FgZXi34y3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pl8vfuW0QH9mxKLIpUOPIjA/vdzixjdaQkifaEZrr0Q=; b=nL7Ormy+xRAISx+Roxr2DrNh2KwOhXOqqmJ9o/o+MorkFEYDIEB12XF4gFoiGtEOOIZCEHkFNM9oSA948sI48e94i7zTGOWJBWBs60MSW6x/po42oqG6WJR2RGs5ofelXjk0uTXAX3fPfjHcztkesdOs/hkUjd0AzTnQEJx1pZRcWNbnLsveqSqCp+QlLnr+WR+4BdqEkZE5cE3imXzDT5M7Ssehw/6Fpxc5VoQIxwzzrNLDy7+nOYrF11Y+FTO4a0NIftA9eXffPZcZ5gERw7fa5J+FSlpEu47f82Rt+hYhPLB6rCjVLzI3VbvRw7mTouiuIt33bOb4mdt3Xf1/PA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pl8vfuW0QH9mxKLIpUOPIjA/vdzixjdaQkifaEZrr0Q=; b=PkpoY4R+Zlepu51AEOBJ0JEiIf1SCNor/ZhYAjEB22QR2VsXUce75nfOdkdQRcyI224N4PRyZBsHOMWX2VODYCUsyTPy1LnQnACx3GOs/3eydoNbxv9NstYTmCkGayurLGloXqOW/gSnasTrKDNDwhqfVIyxkugC5A0+QNoGNiY= Received: from DM5PR11MB1435.namprd11.prod.outlook.com (2603:10b6:4:7::18) by DM6PR11MB3291.namprd11.prod.outlook.com (2603:10b6:5:d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Mon, 20 Jul 2020 13:00:14 +0000 Received: from DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364]) by DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364%10]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 13:00:14 +0000 From: "Liu, Yi L" To: Auger Eric , "alex.williamson@redhat.com" , "baolu.lu@linux.intel.com" , "joro@8bytes.org" CC: "Tian, Kevin" , "jacob.jun.pan@linux.intel.com" , "Raj, Ashok" , "Tian, Jun J" , "Sun, Yi Y" , "jean-philippe@linaro.org" , "peterx@redhat.com" , "Wu, Hao" , "stefanha@gmail.com" , "iommu@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v5 13/15] vfio/pci: Expose PCIe PASID capability to guest Thread-Topic: [PATCH v5 13/15] vfio/pci: Expose PCIe PASID capability to guest Thread-Index: AQHWWD2mzUJ6HDvde0eWOdamhXnigKkQdAEAgAAFwTA= Date: Mon, 20 Jul 2020 13:00:14 +0000 Message-ID: References: <1594552870-55687-1-git-send-email-yi.l.liu@intel.com> <1594552870-55687-14-git-send-email-yi.l.liu@intel.com> <63d4c058-246d-1a11-af66-e97fd5ec9bd3@redhat.com> In-Reply-To: <63d4c058-246d-1a11-af66-e97fd5ec9bd3@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c8ca0755-aa8b-4b5e-6882-08d82cacd863 x-ms-traffictypediagnostic: DM6PR11MB3291: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HKKCqVwlviiGLSmzV3rN1h/ReiT76kTDrpgDHVu3kQ6vNQGd2YHiQDI66FOHeM6HSmB4Nt9FoYOipftkyF1QdpfeITjAlFi5DhsjAhIZueljH+j4fA+INGtvssRQrxnsCry6qhIdYnx64NuqjmPI3nze1XTe5/EGCrME8lAN9KwwMXyJBNV5CRcPLzvZh4+FApePioWxFOb+5Rp8mYtEUd4OPVbzIesR/C6X5GIS+JV+F4gk5IvE1jh0VcaGcgYYdX7eCJ69uID+QRwu9LoTanoBX1D0k9a/Of6E+I0YKR8LSgPxdB+Kj+KRbzjuIvpKSDdQwqAXx+pz+guDfWAZVq/dJnvU7VWqkigq57p997ckpp4EM1MCB9KdF4+l7IEHnYP9OKAh+g09vOaWgtau6Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1435.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(346002)(396003)(376002)(136003)(39860400002)(76116006)(186003)(55016002)(66446008)(66476007)(66946007)(33656002)(86362001)(9686003)(478600001)(26005)(966005)(64756008)(4326008)(66556008)(6506007)(8676002)(83380400001)(71200400001)(316002)(5660300002)(110136005)(53546011)(7416002)(2906002)(8936002)(54906003)(7696005)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: SzWF5Z9wFc00rDUGYoJt2V+tQJ1zPcWAj4/X608guE2atZ7BUD00gyfj5VeHihLrKVlqN9JdwhIXtRirkOx0fcPqWFLzWRZh77bL4N2UnJiAmilo9PI65yP3/WZGdCbgqgnC2ghNOCV3X1i3YWbGxppH3wIBO+9oyOUJvYztoTVL2lOwy89a+hPux63DiTNVvmPYdF0Z9dI4SSYtdMrniVBWNGDaelLMzjR2ACLcjXQeGplUJzuxHTrioNYoCesuBIKh/TACvqngYmXfx0z3ifHDDaESh+6Wb8Zi6m1M9lFRY2CoUQNstzTeMLL5vMiAGyxNx2f90U01Xu5rUD3QLMA6pDGGvk4YtqELqPhH0PzQb9jy0fj5VP1wy6K79cVW4OlKOdoUTXFYxXJ1ecshZgfLrBHNxWrweCXjDqmAy6N2gjvaYVYd8T4jy0rn0zEWlvIY3viAxyBFKGy14LUfohy3YIeY4YuTU58uusgVByrW0jT5nZrJbfl1E29EbMMH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB1435.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8ca0755-aa8b-4b5e-6882-08d82cacd863 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2020 13:00:14.8646 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TQM8XteiVfkYXoP7W6bS65U1x9T/bar0F0I9EWiRT9kgjrRLC9cEwveO28eXybFWIZCIzSsMs8MBjuhReW7BCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3291 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: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