Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp320441ybb; Wed, 1 Apr 2020 00:14:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsmvjBpD7i+NSM6fZnQ1JqeE5Tug5e0J3ZTfcQPDzq7RtO1wh9vgl0ASTUUMzDygkDfr367 X-Received: by 2002:a9d:17ec:: with SMTP id j99mr15531908otj.213.1585725286062; Wed, 01 Apr 2020 00:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585725286; cv=none; d=google.com; s=arc-20160816; b=bTdMwJQ0YxgXWE5GwjlSbK18Vz5xpLGZWlsyUdQVHzvKzqhX9OVjb2lnFx2EBiunLY TpbGS3OZ6LkGQ0YNTpub7ylr9CUxQNuN11JFIYSH3C9lCuurQgAsalCRkq9GHnccvlUD UUk6HLByDFNYWpFbMqjzhaszsax7r5UrdY5pQn9FsDjuOBwA8GiNbHGraujsgLP4FCzl 3NjY0MWMXN6I8PZeGP9UzSpKl3IDPNW730khl2Y6W0XTedRAViVfqDuAngM/rvmQCKd4 7zvxx4MqyEA5fiVhwyGI9sxJA2ErYK4223SKBrgsPgFwxJUBgR2SQs6gRjT+2d+8cypE wCIQ== 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=0QCfppn4fBdslC7LkEW+Y1O8JD4ygKPeoNK5oSPAntI=; b=kN7KLCbI3+8R0d1rEwuZrHJNpfYd1DUDErBIq/+g1NLaXFgv+B8p8s0zNxrua2s0o6 Lo3V4eLGTjRRMHIzfm1sdhENALMpDXJhpbRe6sA3hKMjGRFI41RXaPR9ol92hB0AoQNn OVyTa0kkcJ65HpK9h/sPDZAmEru0ieOGGmGQUvmfm33Ce3QQcFljfEM0xDoPpbFAvtfA oKl70X8CHk6tmbh1Dta1IgAf1EoFCpo8JT04BXrwEXV+oXGWrvxa2lL91t9/BTCwMHg3 nCffPZOdvWgRFDHe5sLMTJGTlwEid7EaH8cKQP6ZFsnUbWT4IfWuP1otkM+uvwn0m2B3 whxw== 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 79si461135oty.232.2020.04.01.00.14.33; Wed, 01 Apr 2020 00:14:46 -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 S1731895AbgDAHNn (ORCPT + 99 others); Wed, 1 Apr 2020 03:13:43 -0400 Received: from mga03.intel.com ([134.134.136.65]:21691 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731680AbgDAHNn (ORCPT ); Wed, 1 Apr 2020 03:13:43 -0400 IronPort-SDR: m8KMCVdTPhRgkEcgPtMB7zVoWzbOCFo1aok0C368VDw0CGTXqF67et68XBv3zrCP9mD1VagyKy xeFWfqsVUyAQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 00:13:42 -0700 IronPort-SDR: j/V9mYQw38f565XZV0f40WaKx8s33Kr6QPs7TWpNd8NMiGo9Ce3fM+0HoILVkFzhKD+0JgCIGo AAj3UixF5OTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,330,1580803200"; d="scan'208";a="249323455" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 01 Apr 2020 00:13:41 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 00:13:41 -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 15:13:38 +0800 From: "Liu, Yi L" To: "Tian, Kevin" , Jacob Pan CC: Auger Eric , Lu Baolu , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , "David Woodhouse" , Alex Williamson , Jean-Philippe Brucker , "Raj, Ashok" , "Christoph Hellwig" , Jonathan Cameron Subject: RE: [PATCH V10 08/11] iommu/vt-d: Add svm/sva invalidate function Thread-Topic: [PATCH V10 08/11] iommu/vt-d: Add svm/sva invalidate function Thread-Index: AQHV/w5hiFCIIwap/Eaujod2FPXZGKhdS4kAgAHvP4CAAk70gIABMDKAgACfq4CAAIq7wA== Date: Wed, 1 Apr 2020 07:13:38 +0000 Message-ID: References: <1584746861-76386-1-git-send-email-jacob.jun.pan@linux.intel.com> <1584746861-76386-9-git-send-email-jacob.jun.pan@linux.intel.com> <3215b83c-81f7-a30f-fe82-a51f29d7b874@redhat.com> <20200331135807.4e9976ab@jacob-builder> 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.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