Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp362245ybh; Thu, 12 Mar 2020 03:29:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRHgv1oEO6HIUiZSgwB7STWmURjbUQzW1Eqz9i4boyBIHnIoLoA4bEp5rGAUIa248fJGZU X-Received: by 2002:a05:6830:1503:: with SMTP id k3mr6021324otp.28.1584008968612; Thu, 12 Mar 2020 03:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584008968; cv=none; d=google.com; s=arc-20160816; b=oX6ociG++e0RTqX/17hjWYLPxWQayHFXu+NzoWyNmI8fV8hBXfNqmRZ7bXFbJY+cWQ 6cn+posM8lTAVOI7qIgAO4HkEN7UJSPLMToubJyMZ8Lr6C54XJ87un/nB/Y/Kr/+VNwM sGnM/HtvqHLYSDzm0qaFxOPChiWARtnfsjTSu7Ekqx/fdfyTmWAgBvFDRptm9tPaBh/v 47Fab2JC7VmWpb2eti9FqdZTRgIfrqp7IJcOmzDKgihkd27RtXWY+UUyl0hHoRjWLqk/ sYeTzXqft7iKRc6TXKJwZSKJrnQugkXXxGNajJz8fJFv/NqD11rJVTitOnMW6nCjIyCa yOlg== 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=m/BdgIaxUh47sWgyBihE61w6c3kINor6izRQTeebxGU=; b=BXbZGgu7oH0O9zx4ggj08OunkN6XuWFwB5bNRYJu/mqg9DHcJFFgLhOQMw2GlYz5+2 TrSTib8Bv39hDvfa/7KHWeTVOP63E2hiHBRvW60enm0TUKy6hSBS7Fv3C7ycDpT9JP9o +6DHRuFpmcrTQZAo6Is8x678lri3L145h/KH8sJVZx11lnz6drRe877bkmooKn9DCy+/ E3R1dvi1lPJg8DPvjWS6o2uAV8Yyy2T0e3Jk/2Ok3KuFT5Qr2AY2H0OtOwFnY77AsnbT FIZReZ0Cbz4FfwNg3ivRXs6zvpfljN/bPypEhNjl8H/bRDdZjGwUGnOeRd1olio9butl bOYQ== 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 l12si2549175otn.101.2020.03.12.03.29.16; Thu, 12 Mar 2020 03:29:28 -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 S1726952AbgCLK2w (ORCPT + 99 others); Thu, 12 Mar 2020 06:28:52 -0400 Received: from mga06.intel.com ([134.134.136.31]:28498 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgCLK2w (ORCPT ); Thu, 12 Mar 2020 06:28:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 03:28:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,544,1574150400"; d="scan'208";a="354099036" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 12 Mar 2020 03:28:51 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 03:28:50 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 03:28:50 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.206]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.201]) with mapi id 14.03.0439.000; Thu, 12 Mar 2020 18:28:47 +0800 From: "Kang, Luwei" To: "Liang, Kan" , Peter Zijlstra CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@redhat.com" , "namhyung@kernel.org" , "tglx@linutronix.de" , "bp@alien8.de" , "hpa@zytor.com" , "pbonzini@redhat.com" , "Christopherson, Sean J" , "vkuznets@redhat.com" , "wanpengli@tencent.com" , "jmattson@google.com" , "joro@8bytes.org" , "pawan.kumar.gupta@linux.intel.com" , "ak@linux.intel.com" , "thomas.lendacky@amd.com" , "Yu, Fenghua" , "like.xu@linux.intel.com" , "Wang, Wei W" Subject: RE: [PATCH v1 01/11] perf/x86/core: Support KVM to assign a dedicated counter for guest PEBS Thread-Topic: [PATCH v1 01/11] perf/x86/core: Support KVM to assign a dedicated counter for guest PEBS Thread-Index: AQHV8tS2uZDJ2Dgk6EqR/a2HW+9LbKg7EWeAgAAN1ICABGlOgIAANIUAgAAfgACAAEmBgIAEoPfg Date: Thu, 12 Mar 2020 10:28:47 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E1738A1898@SHSMSX104.ccr.corp.intel.com> References: <1583431025-19802-1-git-send-email-luwei.kang@intel.com> <1583431025-19802-2-git-send-email-luwei.kang@intel.com> <20200306135317.GD12561@hirez.programming.kicks-ass.net> <20200309100443.GG12561@hirez.programming.kicks-ass.net> <97ce1ba4-d75a-8db2-ea2f-7d334942b4e6@linux.intel.com> <20200309150526.GI12561@hirez.programming.kicks-ass.net> <45a1a575-9363-f778-b5f5-bcdf28d3e34b@linux.intel.com> In-Reply-To: <45a1a575-9363-f778-b5f5-bcdf28d3e34b@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+PiBJbiB0aGUgbmV3IHByb3Bvc2FsLCBLVk0gdXNlciBpcyB0cmVhdGVkIHRoZSBzYW1lIGFz IG90aGVyIGhvc3QNCj4gPj4gZXZlbnRzIHdpdGggZXZlbnQgY29uc3RyYWludC4gVGhlIHNjaGVk dWxlciBpcyBmcmVlIHRvIGNob29zZSB3aGV0aGVyDQo+ID4+IG9yIG5vdCB0byBhc3NpZ24gYSBj b3VudGVyIGZvciBpdC4NCj4gPiBUaGF0J3Mgd2hhdCBpdCBkb2VzLCBJIHVuZGVyc3RhbmQgdGhh dC4gSSdtIHNheWluZyB0aGF0IHRoYXQgaXMNCj4gPiBjcmVhdGluZyBhcnRpZmljaWFsIGNvbnRl bnRpb24uDQo+ID4NCj4gPg0KPiA+IFdoeSBpcyB0aGlzIG5lZWRlZCBhbnl3YXk/IENhbid0IHdl IGZvcmNlIHRoZSBndWVzdCB0byBmbHVzaCBhbmQgdGhlbg0KPiA+IG1vdmUgaXQgb3ZlciB0byBh IG5ldyBjb3VudGVyPw0KPiANCj4gS1ZNIG9ubHkgdHJhcHMgdGhlIE1TUiBhY2Nlc3MuIFRoZXJl IGlzIG5vIE1TUiBhY2Nlc3MgZHVyaW5nIHRoZSBzY2hlZ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