Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp40463ybz; Thu, 16 Apr 2020 18:54:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIn1nxGZAzuWTL16oKdfHcMZMBygFfBmbIgzT2+EQAWcNciV3qlhkEBD4Ei+peVHvJIHjdy X-Received: by 2002:a17:906:7383:: with SMTP id f3mr807910ejl.197.1587088456346; Thu, 16 Apr 2020 18:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587088456; cv=none; d=google.com; s=arc-20160816; b=ZhKEXxPTvlt+WcBQTEfeBj77DAXQGEWHxgviSHNCgpuULXQbjgGgB6y7XWeJS81le0 30/op0NrIZ5fDmlsuYJ784M5tkTbyGpxugdLds1u+bRvOfUmLq/uHTyZA4hZ08k7rKp5 ZN2cpSaOslnp4xR+JoM/245gK2JqH+hkKMekQhNkTptLW4P4MUGpFI7HrsGBe/TauSzz 687p6KMmBvUyOcMWLGjvycjjigX1a1HzOEGhZdeZvr6hFeWForkNC19ENVyrnBArKbzC kyGKQJy+Z6SZURcGJFOwdhAMHR06XpuQyPRiLyIQff7ZDy7LZB9zxpMJCfu+Z9NCN7hC IIyw== 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=9TjLQZpK/0QOZI0exUUbD+Aj3y7Q2c3+PStCAVUiQkE=; b=b3NixxqgKoOOqDIw7t60DSRQv62qqD7HIMEJyRImF3ROX0CIrBMoNeeSe+dMlxu9VM oGqG5UJCZhGYRfjuuvYa64Kd289adfzjo7UCAyPm6dZYq8/n0Oxy3qock5gmU74zXZ0q 2I8KxID8dquHNiiw0XHJafku9nXUbPmEjLl1CzOgwLGWCiov3FXnn5ObDKfsxTAIlbDv lqGljIX+O+aWVLJSPEWdlqjWFbqamI/UD3wRYAr44jti7yMXcAnZMCWq62c92maIycIk 7GCEUWRcU8KVrAgi4Bd76pY8zg3VKhEpEGk0oXL32mNq0FmBg/3TrpQg4sEmBUryKwhV CtKg== ARC-Authentication-Results: i=1; mx.google.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 cm18si3377961edb.130.2020.04.16.18.53.49; Thu, 16 Apr 2020 18:54:16 -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; 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 S1728857AbgDQBuI (ORCPT + 99 others); Thu, 16 Apr 2020 21:50:08 -0400 Received: from mga02.intel.com ([134.134.136.20]:26911 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgDQBuI (ORCPT ); Thu, 16 Apr 2020 21:50:08 -0400 IronPort-SDR: yIUzAxKlLKYfTyokKa0BP47k76q/ABHhxOD/8P56so6J+4/l7NpoLGbBMoRq+v7qxNfH0G+wHZ p2yuzJoeT5eg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 18:50:07 -0700 IronPort-SDR: lFHVMXVUTwZb9ThjoVLW1LuW1/BT4ns7rMaTuOqQ6SOXXrf8f0dGULaa5H4h3AVvK3oxJcMr+u +qvX71MQhmFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="257427278" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga006.jf.intel.com with ESMTP; 16 Apr 2020 18:50:07 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 18:50:00 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 18:49:59 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.225]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Fri, 17 Apr 2020 09:49:57 +0800 From: "Kang, Luwei" To: Paolo Bonzini , "Christopherson, Sean J" CC: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "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+YUAgAfwusCACwVbAIABLSawgBlWAwCAAUfHIA== Date: Fri, 17 Apr 2020 01:49:57 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E1738C13EE@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> <82D7661F83C1A047AF7DC287873BF1E1738B1A1C@SHSMSX104.ccr.corp.intel.com> <21fa3505-8198-5f32-9dfd-3c9d9cc5ef7e@redhat.com> In-Reply-To: <21fa3505-8198-5f32-9dfd-3c9d9cc5ef7e@redhat.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+PiBBaCwgcmlnaHQuICBXaGF0IGFib3V0IGVuaGFuY2luZyBpbnRlbF9wdF9oYW5kbGVfdm14 KCkgYW5kICdzdHJ1Y3QNCj4gPj4gcHQnIHRvIHJlcGxhY2Ugdm14X29uIHdpdGggYSBmaWVsZCB0 aGF0IGluY29ycG9yYXRlcyB0aGUgS1ZNIG1vZGU/DQo+ID4NCj4gPiBTb21lIGhpc3RvcnkgaXMg dGhlIGhvc3QgcGVyZiBkaWRuJ3QgZnVsbHkgYWdyZWUgd2l0aCBpbnRyb2R1Y2luZw0KPiA+IEhP U1RfR1VFU1QgbW9kZSBmb3IgUFQgaW4gS1ZNLg0KPiANCj4gSSBkb24ndCB0aGluayB0aGlzIGlz IGFjY3VyYXRlLiAgSUlSQyB0aGUgbWFpbnRhaW5lcnMgd2FudGVkIHBhY2tldHMgaW4gdGhlIGhv c3QtDQo+IHNpZGUgdHJhY2UgdG8gc2lnbmFsIHdoZXJlIHRoZSB0cmFjZSB3YXMgaW50ZXJydXB0 ZWQuICBJbiB0aGUgZW5kIHdlIHNvbHZlZCB0aGUNCj4gaXNzdWUgYnkgMSkgZHJvcHBpbmcgaG9z dC1vbmx5IG1vZGUgc2luY2UgaXQgY2FuIGJlIGFjaGlldmVkIGluIHVzZXJzcGFjZSAyKQ0KPiBt YWtpbmcgaG9zdC1ndWVzdCBhbiBvcHQgaW4gZmVhdHVyZS4NCj4gDQo+IEkgdGhpbms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