Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3194955ybg; Mon, 28 Oct 2019 08:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+VnsAlIPd7p2CMGJ+o+h/EQUpz8ziRYD8+0BwnQyPVXMD2NHUG6pVlwjtPdiKkGSVV/qa X-Received: by 2002:a17:906:85da:: with SMTP id i26mr6156620ejy.186.1572278204982; Mon, 28 Oct 2019 08:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572278204; cv=none; d=google.com; s=arc-20160816; b=bFnVGVUxJxjzKeD/yZz4umJ1GDI2Pjx7g6lutbgIygvZaVFUGuJR01u9jWzyiClPp0 FiL4wl7RRVdW8FaAGi9TgIv65BLj20dyobX4uylBhywYYoW67zTPyP/xmtSDWNfPI8b8 TD+2uPFmSyBJsLygVotuBihupBT53Eihdo932Nvxr/Fe/E4pBjhhOj9WHfQPv+/fHNJ4 2Tv26K3xouEoNaqG2LdYbO/BHR2mEZ1Pi58wcK1l3JZtbvKiH0FAwJEdDRY5HkZ34QiR RPqaYl6yxLZfnm2C4FrSye9zchWyx/uZ1qKbXc/cqX4Ytffa+fawWHLseLlNAQ0bRCo5 mVkA== 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; bh=oqCHCsXpNpj2hmH5G/j0LBsa2Z75ZD0TQBRajibpfak=; b=WJRn0S02+f/ti0A2SU1gjnMppTBMb57SC7fcJRo7usQE3qcpBpzIwy4TdIoLoHM8fE ov7C3L0WnY4tJ3z3AFSrRh72yZ+9lCtN03jbfiP8u/QoHH1iCkmStob/BrfVGL6JIqxy hnBi5DE3CB/jliLhfHPCD35UlBa9875J1Kg9fRUH385dP++3kmDsSkaggSwIuCQ+BdIQ pWR5ZCQW6vDY4e1WQoWokDZ+SA1OVRHa8+Q0ILmarCSWpFUMqfkCro+mOzTLHXboW83F HNMwI2eNoyr7WzlhicFuvaZ4OJeOTWxSlffPyvmNnhcwd2DGjn0qpwDgAeXghF0919z0 B5gQ== 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 f23si6402166ejb.333.2019.10.28.08.56.21; Mon, 28 Oct 2019 08:56:44 -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 S1730394AbfJ1GGi (ORCPT + 99 others); Mon, 28 Oct 2019 02:06:38 -0400 Received: from mga07.intel.com ([134.134.136.100]:51015 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfJ1GGh (ORCPT ); Mon, 28 Oct 2019 02:06:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Oct 2019 23:06:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,239,1569308400"; d="scan'208";a="399353332" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 27 Oct 2019 23:06:37 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 27 Oct 2019 23:06:36 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 27 Oct 2019 23:06:36 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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, 27 Oct 2019 23:06:35 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.200]) with mapi id 14.03.0439.000; Mon, 28 Oct 2019 14:06:34 +0800 From: "Tian, Kevin" To: Lu Baolu , Jacob Pan , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , David Woodhouse , "Alex Williamson" , Jean-Philippe Brucker CC: "Liu, Yi L" , "Raj, Ashok" , Christoph Hellwig , Jonathan Cameron , Eric Auger Subject: RE: [PATCH v7 11/11] iommu/vt-d: Add svm/sva invalidate function Thread-Topic: [PATCH v7 11/11] iommu/vt-d: Add svm/sva invalidate function Thread-Index: AQHViqRXy9Yx+C3oUEClzLBbVKfxc6dq9GqwgAC9yACAAEk4gIADmobw Date: Mon, 28 Oct 2019 06:06:33 +0000 Message-ID: References: <1571946904-86776-1-git-send-email-jacob.jun.pan@linux.intel.com> <1571946904-86776-12-git-send-email-jacob.jun.pan@linux.intel.com> <5e9d2372-a8b5-9a26-1438-c1a608bfad6d@linux.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTA0ZDcyYTUtM2JjYy00NTU1LTg4ZGQtMGU4ZGE4NWJiNWE2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNmE3NGdsQzAxeGFcL1BNODhBNnhLQUFEeXp5bXgzM2xhZGxjdWhQdVhJTVM3UUJMdnFZWkRCTDZ0MEJQVXJQalAifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 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 PiBGcm9tOiBMdSBCYW9sdSBbbWFpbHRvOmJhb2x1Lmx1QGxpbnV4LmludGVsLmNvbV0NCj4gU2Vu dDogU2F0dXJkYXksIE9jdG9iZXIgMjYsIDIwMTkgMzowMyBQTQ0KPiANCj4gSGkgYWdhaW4sDQo+ IA0KPiBPbiAxMC8yNi8xOSAxMDo0MCBBTSwgTHUgQmFvbHUgd3JvdGU6DQo+ID4gSGksDQo+ID4N Cj4gPiBPbiAxMC8yNS8xOSAzOjI3IFBNLCBUaWFuLCBLZXZpbiB3cm90ZToNCj4gPj4+IEZyb206 IEphY29iIFBhbiBbbWFpbHRvOmphY29iLmp1bi5wYW5AbGludXguaW50ZWwuY29tXQ0KPiA+Pj4g U2VudDogRnJpZGF5LCBPY3RvYmVyIDI1LCAyMDE5IDM6NTUgQU0NCj4gPj4+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