Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4512462imd; Tue, 30 Oct 2018 03:15:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5fUlHwdIRhEL0aBD+gH7JUOWzJKsjOU6CKz+XNF3CZtaaxDRZ70c3fAn0qpGS3NS0Yeoegu X-Received: by 2002:a63:b801:: with SMTP id p1-v6mr17342982pge.327.1540894547411; Tue, 30 Oct 2018 03:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894547; cv=none; d=google.com; s=arc-20160816; b=mAgcWnEkpVKP+WpWfMExhv+kauSa4CAu+4Trb7UsJG35AfF1mowjfWP6F0QrkiSkOV Z38ET6A5ZS6GySV2MKA+Fv/UorYIfHXbRlbXlTivdkXtGaJlRv0mwmQW+lzdqYLLZCNA E1auX576UTY7nKwv4J1M3OFP07HHvxTGDhIMm66WvW01kwtsw2Tr1AmQiVZiaCvN6JQS Iqz4DxOZ9+sVdSOmRWeaXrGgBBxsWPEzloTPptQphOVYjFfVD9+QsSl4m5F5s68lZrin qZ5O0FkP9Xw6Hh8eWAlx7RL25z4x7Mgk+rzL3ciBbF9KvfYz3vY6nAGgdkpMC2WK9144 1UVA== 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=hjinyIRI4Mq8hwatcE+sw1GqCyYOc6LHcSRJdRW/iP8=; b=V6WlcwOcQbyiAEBJXVVQ8MfXRJw4iQ7MfQGw3PdNzUgYmSF0rCK2vcKNoxvT8oCg83 V6A/sOlzWP1Qpr2dABA9JzHOXlJ4ygrChC/++KIELLsgmc1+h+/PvvSGZJ51PPqhVJQg WhO7JbVPbkgUawGGlgibjdKSWIvFGKwylqpNbMa+U7vwglpYiq7Bh11RIv3ipgT+Zkd9 30eWSopUY1wjCCdqW4oUGnrg4EoAmnzRgZaWktobfvMLxR0wTG4neRidqPtp7np6taR7 FOIsZkKKiwCv6okb3eakToLWN+wteSyd3uce47ubNX1K1Gf3QTWApR4Xzvxe4z3msccz 8GPg== 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 e17-v6si21933787pgj.272.2018.10.30.03.15.31; Tue, 30 Oct 2018 03:15:47 -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 S1727115AbeJ3TGS (ORCPT + 99 others); Tue, 30 Oct 2018 15:06:18 -0400 Received: from mga06.intel.com ([134.134.136.31]:23453 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726570AbeJ3TGS (ORCPT ); Tue, 30 Oct 2018 15:06:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 03:13:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,444,1534834800"; d="scan'208";a="85614121" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 30 Oct 2018 03:13:23 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 30 Oct 2018 03:13:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.102]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.214]) with mapi id 14.03.0415.000; Tue, 30 Oct 2018 18:13:21 +0800 From: "Kang, Luwei" To: Paolo Bonzini , Thomas Gleixner CC: Jim Mattson , kvm list , "the arch/x86 maintainers" , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Joerg Roedel , "songliubraving@fb.com" , "Peter Zijlstra" , "alexander.shishkin@linux.intel.com" , "kstewart@linuxfoundation.org" , Greg Kroah-Hartman , Tom Lendacky , Konrad Rzeszutek Wilk , "mattst88@gmail.com" , Janakarajan Natarajan , David Woodhouse , Josh Poimboeuf , Marc Orr , Uros Bizjak , "Christopherson, Sean J" , LKML , Chao Peng Subject: RE: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode Thread-Topic: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode Thread-Index: AQHUa3CrSmGUmyBSyUy4MzZKiwm0DqUuDVQAgAEJRcCAB/KrAIAABWGAgACGsuA= Date: Tue, 30 Oct 2018 10:13:21 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172BDB25D@SHSMSX101.ccr.corp.intel.com> References: <1540368316-12998-1-git-send-email-luwei.kang@intel.com> <1540368316-12998-7-git-send-email-luwei.kang@intel.com> <82D7661F83C1A047AF7DC287873BF1E172BD64F1@SHSMSX101.ccr.corp.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTg5OTkzMDgtMjdkYy00ZjdiLWFkNjctMzY1NDJlNWQwYWU5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSFdHdUhuY25NbExBSndYZmpXYWZ5MjRKSzVZWThhamZjY0lzWmgrQ1pTUElJWmdPYnl1OTN0TzVaNnRqYmdTaSJ9 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 PiA+PiBUaGlzIHBhcnQgaXMgaW4gdGhlICIgSW50ZWzCriBBcmNoaXRlY3R1cmUgSW5zdHJ1Y3Rp b24gU2V0IEV4dGVuc2lvbnMgYW5kIEZ1dHVyZSBGZWF0dXJlcyBQcm9ncmFtbWluZyBSZWZlcmVu Y2UiDQo+ID4+IGh0dHBzOi8vc29mdHdhcmUuaW50ZWwuY29tL3NpdGVzL2RlZmF1bHQvZmlsZXMv bWFuYWdlZC9jNS8xNS9hcmNoaXRlYw0KPiA+PiB0dXJlLWluc3RydWN0aW9uLXNldC1leHRlbnNp b25zLXByb2dyYW1taW5nLXJlZmVyZW5jZS5wZGYNCj4gPj4NCj4gPiBZZXQgYW5vdGhlciBQREYg d2hpY2ggd2lsbCBjaGFuZ2UgaXQncyBsb2NhdGlvbiBzb29uZXIgdGhhbiBsYXRlci4gQ2FuDQo+ ID4geW91IHBsZWFzZSBzdGljayB0aGF0IGludG8gdGhlIGtlcm5lbC5vcmcgYnVnemlsbGEgYW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