Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2087063pxa; Sun, 16 Aug 2020 23:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3dd7BqAxieiF1DDe9JZH2PiddAFEegtqp/WU73tiyMmtNEc4vbnqmYq1sWA0OxCf8Y953 X-Received: by 2002:a17:906:fcdb:: with SMTP id qx27mr13443626ejb.421.1597645951097; Sun, 16 Aug 2020 23:32:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597645951; cv=pass; d=google.com; s=arc-20160816; b=uf60QC+kJj6VSJj18wA9KZX1NB25BJdD6h2R5HcU0Hp7qf7RWRLKanQLb6mbhxutpw Ol4SmfWoR39Evia3E4FfnbWQ2flp2Hx8euP0bNlUoK/NE61upCrLh7MNTqZb6LvlPMyt 25+ZtE5M3WCr+45speHjTOnBfLGX+kXTPuZ6iqv8g3srWztg8NSOjblQf9jRIwVqKcZl G316Pu0wKTRnvg+JMe4Ig5qkoYW2q3d1J+JIQeBo9MGCXDSy4nr8s3sWjIYWXfiIDDTC VFSPIEXKgd0RhuB1MQU80MBlxfZbY5cuNYVWSvx4W6TOr51DjO+AJedYVlwIaDUMap+z HyKQ== 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=ovIARKH7ArULcoswuEAyiCeLregs4RoiRzn425UzWnc=; b=ShOJ0feFs5hFx2wSpEizj+BRullP5QGcWzDxABJzztiVNBQNWwWwOyxjelakcRvxZJ Z6xPRRo4qsko0iUcSL/TyTaZZKWAkEZgG6E9woZUG8OOCYu1jXg74jhcg4KTZdMZ9fhW ZjbCI7ASKPoMrgaeAY5wijjpc7vCBTVSiEDNUItDg1dcIzJAdTds/0JGT1HrLLv2GPN4 N/dbV8k8WIEumCjyErTUwwoM0slcnPhZPP1+3vwEBVLcHp97SCWA14Z+KpIWQXJlUt4q NjxN/VEhAlc+9i0Foi4I1A70u3L3r2udN+zcnXKU7ynkh1bMI4tqi9eFrNHhTvf40KC0 qKzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=EwMXGgKN; 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 ot3si10041263ejb.655.2020.08.16.23.32.08; Sun, 16 Aug 2020 23:32:31 -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=EwMXGgKN; 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 S1726741AbgHQGbO (ORCPT + 99 others); Mon, 17 Aug 2020 02:31:14 -0400 Received: from mga11.intel.com ([192.55.52.93]:36276 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgHQGbL (ORCPT ); Mon, 17 Aug 2020 02:31:11 -0400 IronPort-SDR: iOhTQt2UHWAliP9FODUb+mj46CbajW+xOlYOkenHho/dFJn6+9SNKt7OBUpknqs+0vvA04dNeq fLm4/0DRG55g== X-IronPort-AV: E=McAfee;i="6000,8403,9715"; a="152291394" X-IronPort-AV: E=Sophos;i="5.76,322,1592895600"; d="scan'208";a="152291394" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2020 23:30:58 -0700 IronPort-SDR: 9sjl7DlZBUVxhluMHW76zwsi3g8unUv+RrUGcTu3e+2UUvCe2GEgMrQQ356/bgUJVXljCjbXjC 1Ulmi8PeqDnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,322,1592895600"; d="scan'208";a="336188149" Received: from fmsmsx601-2.cps.intel.com (HELO fmsmsx601.amr.corp.intel.com) ([10.18.84.211]) by orsmga007.jf.intel.com with ESMTP; 16 Aug 2020 23:30:58 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 16 Aug 2020 23:30:57 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 16 Aug 2020 23:30:57 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 16 Aug 2020 23:30:57 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Sun, 16 Aug 2020 23:30:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gmHFxDlqna3cYMyqy3k1IdYjCfBnWN2hWejirG3/5g1ZEusR6D/V8qFMTRknNM3aIBw+wPNh8Qa1K6swZpqxXDw75UiBJA+WuW1p8l3QZyZADrNH8YrML1++g1PqxoTHjcoYcbCg9GOioFMBXSjqLoqeT4vB7X2WGNHa0B/QBlEov1lTJzkvxzbS7ZaBkxpvmUnCFyc9s7dyEprDo/55/Fx2PsAKbsV1ZrTW7hbRqrPfIa+oeu+2tl6QBMKFTakfDgRQzJGbWdPHpSE+wzTG3IV3sRdSj0oLzahBUE+XuPWUfrFU8RVum0FjnSDeeSqUMQB+t2YABMsYZ9g2SJTCSQ== 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=ovIARKH7ArULcoswuEAyiCeLregs4RoiRzn425UzWnc=; b=G6l1zICFtVl1EPsm50QAIAOdK8yKu0phVAPGgnSD3/LB1fa6LX39cORyds9qC57KkO0U61ABYic/EErgKbtZ8FSYdBf7A8+HuVfDvamI4UfDpkcwznDpaK+HwW069i4GcWI0QrU2du1lf6bXpqKZ8sO8Fau7sr7RuvP4eX8Rxn60RAjkVgnnRpyJltUYUIZLyzg3zbyHEiIKGFb0uFLW9kEqqNp8Yf2WdQfVamY2XRGa9o/IcGWz1x3tkBiEw1F+hUY8XYhccnLDmBEWI7wxRUebwPngUWuToP1ns1GiY2jFD/L2Zy7xXWeTiQEgXJlc+H8gIUZuEhtckTaxjmKM3A== 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=ovIARKH7ArULcoswuEAyiCeLregs4RoiRzn425UzWnc=; b=EwMXGgKNzjx/iaFX9nIk9/xMUek1kSTbWoQMRUHkAALE+ANlWx+MXVYMBarPYybUsrJQmA+uCCykmJ70NCQChYFS6bLqKcfa9gAWeUTdBRngBTVkNrFFmD99j3e0/BdKJdBwm+W+Sjqlbc3maNLRUfu7btBNENqFNR06k0pzXRM= Received: from DM5PR11MB1435.namprd11.prod.outlook.com (2603:10b6:4:7::18) by DM6PR11MB4441.namprd11.prod.outlook.com (2603:10b6:5:200::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Mon, 17 Aug 2020 06:30:56 +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.3283.027; Mon, 17 Aug 2020 06:30:56 +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 v6 11/15] vfio/type1: Allow invalidating first-level/stage IOMMU cache Thread-Topic: [PATCH v6 11/15] vfio/type1: Allow invalidating first-level/stage IOMMU cache Thread-Index: AQHWZKdIe1LgYQpv3k6k7A0drA9ljak6uVmAgAE0uTA= Date: Mon, 17 Aug 2020 06:30:55 +0000 Message-ID: References: <1595917664-33276-1-git-send-email-yi.l.liu@intel.com> <1595917664-33276-12-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-reaction: no-action dlp-version: 11.5.1.3 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: [117.169.230.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 843acc68-68e0-4c40-84bd-08d8427718fc x-ms-traffictypediagnostic: DM6PR11MB4441: 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:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ML86/xSMPEhwFUcsvVCoaxX9WWKe+usVMsEC9AdNopuS3UUtWnWlHm3m7yxyHAMCAORuPcTRtkR+DQFTpBCVtZwUJ48AOOrkm2r0HhQbNUCU416ba3PyKZAk9Oi3u4QL0F82E16lIjd1srgeY7LiOxxooVZJPP19f9zi4wBU8+zYxxmwkdDMVSM4Hge/jAWcmTV4Krtk1ofQOJ7pMseaqgBtFG2jPfNN3kqv0j4zAXGMEtr+KV1mP2JnHDZRzfQLlVCzTcSyM32XaKIhcxhgVfoNyvNsjm2Hwy8p3S8s5CO65FZsVG/DPgXXb1A/bvVs5fSZV9MBeDAo9UB56xduBA== 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;SFS:(4636009)(366004)(346002)(136003)(376002)(396003)(39860400002)(4326008)(2906002)(33656002)(83380400001)(66946007)(66446008)(8676002)(64756008)(66556008)(66476007)(76116006)(86362001)(8936002)(110136005)(478600001)(54906003)(5660300002)(7416002)(71200400001)(53546011)(55016002)(7696005)(6506007)(26005)(52536014)(9686003)(186003)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 8HUaknad7GIy5Sjfjj5gDpnv/TZqBmuoZSuOexFGKlDX/HWxm+PMgvOzXcJ9Tg92BVoTOi5N6YvUczCVELKNNT6KHnAOQfGxc8eDNryAs5Yexh6QhR7hmn4xoa2kbNVekoiQGrdXDA2gJ9Nwf8TZM3/3H+n1AkfhtWFN9k0dW65WuxnvK1kDvzmGbyoJNQDalC/+HrhiQRjB1gclklU5IeHohWQaTegMyiuCR77NF00VmqM3btGtpHWB1SdE6YhuK3HgO0dTozld1Eo+wBLlc98UbJvfyJgo5EjQFvSOSfuQLRinet4WUxSQj8BrPEjDWYonZqvo/xSo3J9rtcNRYv6sh8eFj2Z9QQcwg0S+7ZlQtvorkD5LWpr6O7hKh1ZEK7r6gYFoDvfYdfJTw3T9qdYahVyO4xv5tYlxAzsttLYnY/1Yn94MzzMU2ZgyVYv3qWzFBkKTIZj/XH7rjiniL3UekRubCUTPq7g8MQJAC2aJ03R4s5xzQI1BVtF/mFDiYKGK2v7djVSfKRGlmAlEUzcYhzppm3lUOPH81+Iwbxj1o6vqnsZkQGZAicYeGnGs8aySPxewLxRPU3yIHVXj4Efb6Nx6mp7piVVljKq8vRyrgIC8ZOnm5xFnJaYOx5xx8LTQllXV26Ov/8hZRijk8Q== 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: 843acc68-68e0-4c40-84bd-08d8427718fc X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2020 06:30:55.9509 (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: qeq+TgVSevLdUYo1PxT+LZ/+z2yl3KTSKx9QqkwrPzL9ZW2q/puuNOTIzvsLn5X2RGE9SI/flrCLKUmAE15fIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4441 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRXJpYywNCg0KPiBGcm9tOiBBdWdlciBFcmljIDxlcmljLmF1Z2VyQHJlZGhhdC5jb20+DQo+ IFNlbnQ6IFN1bmRheSwgQXVndXN0IDE2LCAyMDIwIDc6MzUgUE0NCj4gDQo+IEhpIFlpLA0KPiAN Cj4gT24gNy8yOC8yMCA4OjI3IEFNLCBMaXUgWWkgTCB3cm90ZToNCj4gPiBUaGlzIHBhdGNoIHBy b3ZpZGVzIGFuIGludGVyZmFjZSBhbGxvd2luZyB0aGUgdXNlcnNwYWNlIHRvIGludmFsaWRhdGUN Cj4gPiBJT01NVSBjYWNoZSBmb3IgZmlyc3QtbGV2ZWwgcGFnZSB0YWJsZS4gSXQgaXMgcmVxdWly ZWQgd2hlbiB0aGUgZmlyc3QNCj4gPiBsZXZlbCBJT01NVSBwYWdlIHRhYmxlIGlzIG5vdCBtYW5h Z2VkIGJ5IHRoZSBob3N0IGtlcm5lbCBpbiB0aGUgbmVzdGVkDQo+ID4gdHJhbnNsYXRpb24gc2V0 dXAuDQo+ID4NCj4gPiBDYzogS2V2aW4gVGlhbiA8a2V2aW4udGlhbkBpbnRlbC5jb20+DQo+ID4g Q0M6IEphY29iIFBhbiA8amFjb2IuanVuLnBhbkBsaW51eC5pbnRlbC5jb20+DQo+ID4gQ2M6IEFs ZXggV2lsbGlhbXNvbiA8YWxleC53aWxsaWFtc29uQHJlZGhhdC5jb20+DQo+ID4gQ2M6IEVyaWMg QXVnZXIgPGVyaWMuYXVnZXJAcmVkaGF0LmNvbT4NCj4gPiB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