Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3085321ybb; Mon, 30 Mar 2020 20:31:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv12dQ6BeS/2RdfxBRpuZmb72aWKKxT+XLuRBEm7zrsCKfdpYsM5SYKI5zc/hitRanNkI38 X-Received: by 2002:a4a:df05:: with SMTP id i5mr6933496oou.9.1585625517882; Mon, 30 Mar 2020 20:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585625517; cv=none; d=google.com; s=arc-20160816; b=intc9czuWvU3uRG6qyI/zwlauAitLx7SAKML5JYN1P1ptZdjdyuOuB6r6cL1rr8j7I KHS0uypTsJ7notv3SEZFFZEpJrTTguwB4b5nzvGZ9+CmjlplnEXQtnYC9k5asu1slLuh RQ1yJ5vCG3a/I1JwwIDhd55LPK9FOyLhyIFeFOm2bk7YY6TE7St7maq9c8yaa9blLj5q 1BAjRf+dbcC1quX1yKgvzZyL5Z/USh7X/S9PAaxD9fck/VbY0R4Bcuw64So7DbzNOhJ1 xL9aJ250A6a4P1BpGrrwEIskvaVmCUsExYax59GmFxX6Qo+ZTVzUq3rpp9aeq5p70ypX 09og== 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=6qjFImYoSUb15b3lQKVgyXQ1DROaWwUOZqgg1YrM/S8=; b=naduYLfTWWdihxswUnAzdtsh2V3ql/6Q3/LGWaOc2MhVURRkcGOV0KjUWX/qXbYu1t 3I/UV1rCGCw+eYfBKdUNeLwsC6yNloWMcDqB2wmk42/Wsb5ZgHyXE3uMRl/8RUTB7Kiq ffB+1zxIp7kJRmeMqqY5yTykZma7FoYB5j6iHuPZCtmbeTlHYic3mvTwfMjyxxHnOozY cY6d4D2VsJDkhqvYfMWKg/vJGz1nNh2V5UFulYZa14WGW2T11QveT43WttZQr6aZjAel NGnXb578sVdTFFXn5WnPshrzORxn0aEz6d7nC1FbzKdK3zFMs1HPVZezYGpu93rgss9E 90YA== 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 x14si6786713ooq.78.2020.03.30.20.31.45; Mon, 30 Mar 2020 20:31:57 -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 S1729853AbgCaD3a (ORCPT + 99 others); Mon, 30 Mar 2020 23:29:30 -0400 Received: from mga17.intel.com ([192.55.52.151]:49295 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbgCaD3a (ORCPT ); Mon, 30 Mar 2020 23:29:30 -0400 IronPort-SDR: WKixkB4qGUoOe4Gm257fxpEShDQnvYDpPSygS5fLh5xpKAZL/TM/IbssJpLBtnsSDHZDWk56gx wIcO9kACe2pA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:29:29 -0700 IronPort-SDR: Y9CbFUs/KSal0b/RN+y3oz1G8RxDxU7qi0JkZGFrEjycdmLJpcA5BeGVMUzLjp4NPc9ePGbdwR 3bJ4GddnFhag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="294802480" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 30 Mar 2020 20:29:29 -0700 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:29:29 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:29:29 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.225]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.191]) with mapi id 14.03.0439.000; Tue, 31 Mar 2020 11:29:26 +0800 From: "Kang, Luwei" To: "Christopherson, Sean J" CC: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "pbonzini@redhat.com" , "vkuznets@redhat.com" , "wanpengli@tencent.com" , "jmattson@google.com" , "joro@8bytes.org" Subject: RE: [PATCH] KVM: VMX: Disable Intel PT before VM-entry Thread-Topic: [PATCH] KVM: VMX: Disable Intel PT before VM-entry Thread-Index: AQHV/Nh9FI7fbfgIUkqDZ3DrcNQ1xKhN+YUAgAfwusCACwVbAIABLSaw Date: Tue, 31 Mar 2020 03:29:26 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E1738B1A1C@SHSMSX104.ccr.corp.intel.com> References: <1584503298-18731-1-git-send-email-luwei.kang@intel.com> <20200318154826.GC24357@linux.intel.com> <82D7661F83C1A047AF7DC287873BF1E1738A9724@SHSMSX104.ccr.corp.intel.com> <20200330172152.GE24988@linux.intel.com> In-Reply-To: <20200330172152.GE24988@linux.intel.com> 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.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+ID4gT24gV2VkLCBNYXIgMTgsIDIwMjAgYXQgMTE6NDg6MThBTSArMDgwMCwgTHV3ZWkgS2Fu ZyB3cm90ZToNCj4gPiA+ID4gSWYgdGhlIGxvZ2ljYWwgcHJvY2Vzc29yIGlzIG9wZXJhdGluZyB3 aXRoIEludGVsIFBUIGVuYWJsZWQgKA0KPiA+ID4gPiBJQTMyX1JUSVRfQ1RMLlRyYWNlRW4gPSAx KSBhdCB0aGUgdGltZSBvZiBWTSBlbnRyeSwgdGhlIOKAnGxvYWQNCj4gPiA+ID4gSUEzMl9SVElU X0NUTOKAnSBWTS1lbnRyeSBjb250cm9sIG11c3QgYmUgMChTRE0gMjYuMi4xLjEpLg0KPiA+ID4g Pg0KPiA+ID4gPiBUaGUgZmlyc3QgZGlzYWJsZWQgdGhlIGhvc3QgSW50ZWwgUFQoQ2xlYXIgVHJh Y2VFbikgd2lsbCBtYWtlIGFsbA0KPiA+ID4gPiB0aGUgYnVmZmVyZWQgcGFja2V0cyBhcmUgZmx1 c2hlZCBvdXQgb2YgdGhlIHByb2Nlc3NvciBhbmQgaXQgbWF5DQo+ID4gPiA+IGNhdXNlIGFuIElu dGVsIFBUIFBNSS4gVGhlIGhvc3QgSW50ZWwgUFQgd2lsbCBiZSByZS1lbmFibGVkIGluIHRoZQ0K PiA+ID4gPiBob3N0IEludGVsIFBUIFBNSSBoYW5kbGVyLg0KPiA+ID4gPg0KPiA+ID4gPiBoYW5k bGVfcG1pX2NvbW1vbigpDQo+ID4gPiA+ICAgICAtPiBpbnRlbF9wdF9pbnRlcnJ1cHQoKQ0KPiA+ ID4gPiAgICAgICA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