Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp297019imm; Tue, 24 Jul 2018 19:36:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJ3mu8xDV5QOyKiucusRTyPlvX349mm2iT+nookiFn1j6gJT0uMJC8LRlt+VgynhJq6PNE X-Received: by 2002:a63:a44a:: with SMTP id c10-v6mr18399684pgp.198.1532486194567; Tue, 24 Jul 2018 19:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532486194; cv=none; d=google.com; s=arc-20160816; b=lNAnlQECsdFO6SVFuNbxxX0mpHvgJGdj+RdeteYo0hv81WyaeXs5ch0fZphte28unr stIDOpsO7pCE1frdKqmjuCNmQk7lsF1/jafayygaNHzsSPG4FYTtLtheqjVgZMBy6uuG 2KFcZdhpYi0Y1Gm9jP3u/rPNw7sK9m2Dyr4tDLWBmIJQCmenlzQsJbTtdDKHSQR/5ghB LVCcW/c+hpDBa7il0ccifKMgMiQZYsMwCr8rf6PX9P8FXx9r97t+457dKDvKfrpds13L Oe+B7rgc7GZOUKp4nZRVK6RfoAoUJxoBur5u7bGYTm5TTX1vr6TIFaGbF+LBDa8GsHl7 W77g== 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 :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=wSso47uDSKrelERE73yFGmso90ak7JwiSaO2PMFiXmw=; b=poNJgFWP6CKE3rrLzCBhr3mNieB3fsiUZ9limvWYNMPKtyppGAExkdPiKCOcdr+/5c pxx3zyQ3yxKd76FBqHxq6kiXo3c33cDO8/U1GmwgubHP6TJV4E8IdmVgwhnm0gj1/JCX dhEq2nxAA94rtzgRvcmb6z8clpjNRexTT7ekz8opubzsg0S1wiKAt3HScO9919Lj9P98 7oP4L/c78mD94iC8cyV5ZR3S3ww9sD9/9ur+8Whf2N9+wUGU6qXtqZHRd2jxxzzWqWLK PrkOJ6x35uG7bpTEVD5Un5HiWDP8jKKNYgOASmAltLvwqQy7m0SAjEA2fbBsnyh0n8KX Dfmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=NqL0DCpu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e132-v6si13074361pfg.171.2018.07.24.19.36.19; Tue, 24 Jul 2018 19:36:34 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=NqL0DCpu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbeGYDoy (ORCPT + 99 others); Tue, 24 Jul 2018 23:44:54 -0400 Received: from mail-hk2apc01on0139.outbound.protection.outlook.com ([104.47.124.139]:10659 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727504AbeGYDoy (ORCPT ); Tue, 24 Jul 2018 23:44:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wSso47uDSKrelERE73yFGmso90ak7JwiSaO2PMFiXmw=; b=NqL0DCpuNKSoEfKJfN5MB6yIrPX9gQ5B5VHT5t4HAHF679ER7CFf6HDqin9Dsnz62WzJh6aeZabWt4/xgjUgVE0vE4Y4CPHZu4JtZ1DJUTaNK4FspduLd3cmkN+l3oxgfvAMegKf91klKxT4KSA2is+Vs6QEf1hQU9dK5nJ9yoI= Received: from SG2P15301MB0093.APCP153.PROD.OUTLOOK.COM (10.170.136.145) by SG2P15301MB0061.APCP153.PROD.OUTLOOK.COM (10.170.136.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.1; Wed, 25 Jul 2018 02:35:16 +0000 Received: from SG2P15301MB0093.APCP153.PROD.OUTLOOK.COM ([fe80::f916:a637:8730:be25]) by SG2P15301MB0093.APCP153.PROD.OUTLOOK.COM ([fe80::f916:a637:8730:be25%4]) with mapi id 15.20.1017.000; Wed, 25 Jul 2018 02:35:16 +0000 From: Tianyu Lan To: Junaid Shahid , Paolo Bonzini , Tianyu Lan CC: "rkrcmar@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiao Guangrong Subject: Re: [PATCH] KVM/MMU: Combine flushing remote tlb in mmu_set_spte() Thread-Topic: [PATCH] KVM/MMU: Combine flushing remote tlb in mmu_set_spte() Thread-Index: AQHUIya2sfSO0xmUGUuqak4mr618F6SecMuAgADGxQCAAAJWAA== Date: Wed, 25 Jul 2018 02:35:16 +0000 Message-ID: <69a525da-32d0-71c3-78e6-f8f8e8d8abb5@microsoft.com> References: <1532420205-29930-1-git-send-email-Tianyu.Lan@microsoft.com> <1aaaecab-0e18-f504-5465-06db9d852cc5@redhat.com> <8b07e487-0d7c-a8c5-5109-461ffea6e0a5@google.com> In-Reply-To: <8b07e487-0d7c-a8c5-5109-461ffea6e0a5@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tianyu.Lan@microsoft.com; x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2P15301MB0061;6:YVhvdWc/CPfCTAdv9b9RwyllTM5ks9DkweVs0IwNa+ws0lm7c6kqk9ZrTDVKF1+A+syw9f76mLUSpVdKeWl8E2KVtCrMUY/hafKo5QNUcscg6hOly+8aRPIQn76u6c6UT3uMHNg+B2znLzO0oEtvEZdwiblLxGxTZaTP1ymeNzOlhhJ8E9f612Xrbqn+9Ysn0QYMdUynfYRMK9IStzukaXHYUcKVLEaQzPlt0fbWkbYlUIbyn0s1DPubsDzDWV4wsdxw9nDJ/8mrOJD4ulwJznymo4h70F5qBz6lFCOIhi9SW8h2vSD03AvINUTS7JaMIPjSsxx78nQqX+IVIiJfFlGv3YuJ5T6InH983CQKGBdxj5ZxxctEvk8o9axsZSboFNNJedaTFKB+Mk6IpmlbpoxuQpHsltqT/6meOotWbCdCvJAyUrYedHDSEryPAjUubcp2KSdpB6dNkmUxJYGkFQ==;5:WDrLli+zqgPv4kioq8bzBzZNmKnt1G0bDG67axXZotquJDjAQkhc/1wcVRXtEJzdyN8iVfEotcdgz6ybX2unChZS1aobfPU1ENsfbR+fTx56qphJFnLGaHcsE6BeuBzxOwkKp932qkR+73p5x8Ywg3x/Zv8w/uwJmDnn92Dy2aU=;7:iaP/WTFvxQjqSTFoSfdRnEaERr9pUV9T+OJZ2hxIDfwjc7/zMBSExRFOkzJk2wMq2GjcfsTvbU2/Vj8G/sdgeifnb8JESUFecbjq3K8850U+Gj2JiukbvMVVD5CVhkLjSEjI1S390ZsMh3h1Cn/s5oub0t0xNb0ssLBZzrYbYq0mqX0yl8PcXqPNXI7QAOgYJD8JacJXS5iFvFNguCePAv6969JeNQtf5YQfBq/VSyDcPqIOsi+f50Joc43PmOC/ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 3e275a1e-ccec-4a02-329c-08d5f1d741c9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600073)(711020)(4618075)(2017052603328)(7193020);SRVR:SG2P15301MB0061; x-ms-traffictypediagnostic: SG2P15301MB0061: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(211936372134217)(153496737603132); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:SG2P15301MB0061;BCL:0;PCL:0;RULEID:;SRVR:SG2P15301MB0061; x-forefront-prvs: 0744CFB5E8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(346002)(136003)(396003)(39860400002)(189003)(199004)(2616005)(25786009)(6486002)(53936002)(4326008)(86612001)(10290500003)(446003)(11346002)(97736004)(6512007)(476003)(99286004)(26005)(6246003)(72206003)(102836004)(31696002)(66066001)(1511001)(478600001)(81156014)(81166006)(8936002)(10090500001)(8676002)(5660300001)(7416002)(229853002)(2900100001)(105586002)(106356001)(486006)(2906002)(31686004)(86362001)(110136005)(6116002)(3846002)(68736007)(305945005)(186003)(7736002)(256004)(14444005)(14454004)(316002)(5250100002)(76176011)(53546011)(54906003)(22452003)(36756003)(6506007)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2P15301MB0061;H:SG2P15301MB0093.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 8+LaqYhQNVEs4BKFv0fIAGnKsHtUv+DWGmn+LaUnWEyCFDyLC8jDkBgxnrMLFw9gwgplhmrnEEASrH66CFddydW90K9HIYGkiNbzglzS4iQxH4qii72mpz7CF2EI6DYROJN5Ahd/O+For/gilChTcBck+bYlLzzYULxwJ8VIC9/gy+pUPTayRsVNId8/DeaYJBzzNpmMHRJt1uJdbE8nxA6yh6pQSBMFSBYA9pw6pBqNlpVt19XDLvXUR+XjVybGqEY1ZaSF6NARYK23s++/slKzJoZlWVK7ka57TNccjYv3VSPO1aPCJ6Ud/oRhcN7XPevX/dVbiwCM+yQZtWYp1jHj0k93tBbJiyT5R83KGNs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e275a1e-ccec-4a02-329c-08d5f1d741c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2018 02:35:16.2066 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2P15301MB0061 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSnVuYWlkOg0KCVRoYW5rcyBmb3IgeW91ciByZXZpZXcuDQoNCk9uIDcvMjUvMjAxOCAxMDoy NiBBTSwgSnVuYWlkIFNoYWhpZCB3cm90ZToNCj4gT24gMDcvMjQvMjAxOCAwNzozNSBBTSwgUGFv bG8gQm9uemluaSB3cm90ZToNCj4+IE9uIDI0LzA3LzIwMTggMTA6MTcsIFRpYW55dSBMYW4gd3Jv dGU6DQo+Pj4gbW11X3NldF9zcHRlKCkgZmx1c2hlcyByZW1vdGUgdGxicyBmb3IgZHJvcF9wYXJ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