Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4335926ybb; Tue, 7 Apr 2020 05:36:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5xzOM0pGdAkLflENFZbIlu9gJzl+OMc4ksBI+3HXI7fMA0L4hfh4dcCBVtWmk2MTXjT7l X-Received: by 2002:a9d:5ad:: with SMTP id 42mr1416659otd.231.1586262986360; Tue, 07 Apr 2020 05:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586262986; cv=none; d=google.com; s=arc-20160816; b=JXAX0LKAIQcUz9Ppxz9HmRZJaT/U9k3jL8UaXk7huMByMIiUVGxKE5O4xzNreWbiTa Ocixwxq0fpPWZtJmjs+ec464BXkRbACcnTuDgVfnfX+PKJkeLlP4woel9sYNaiNBx2VG kADbtdaNAse9aQx7o/xklPQPcJnY1knztSulR6a6/XTj6F3pft5IXRJquTjmp2dCwJMZ tlT8FUgJxlySIoOjFUSwpxYn8c7dmXHFnxw14hsHH29Me3UQ0j2lQAISvC4pOJ5rZWU0 ks1lTFZ8sIigUVaSQvaoh2UYtueF0VYQGL92FWzCPH1cdZM8t37+CE+usskJ/bwDrLhW 1RMA== 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=28IA2idgczKlWq0W2O2yHbeDxJGkOqHVFVJl/KAKap0=; b=hNiqEki2fFemit4+oTFDm8xdnMoI9LZCUr1TU63dKfwIeK8nFMpPf8LOSxZK7Hqyzu vJQpOmkBrypRa7+GalFYOnst0U5lL6bJHQDt8sWwMNMVvhuvy8F1cGfgsfCcwsSH27fY RISM3VDEyj4tCMqBp3Jb7bL+bnD6N6vQqw7ClAbT7ieo5fM5CziqL+hH4fv5U0aGpY5d ZuGNPV9vOto05HObApQ69ko5/6UDzrrrGqAWoFdU10UF2pcs/72KTI3+nhvxdr9brCFH XmL4fRXUVARX9AhXK6bsOZ+eS3C227Sw7dW2JSb2QOKkhG1kZX0vbV1tWbVTgl4VR9X2 4tvw== 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 v137si577639oif.170.2020.04.07.05.36.14; Tue, 07 Apr 2020 05:36:26 -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 S1728749AbgDGMe2 (ORCPT + 99 others); Tue, 7 Apr 2020 08:34:28 -0400 Received: from mga09.intel.com ([134.134.136.24]:49662 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728630AbgDGMe1 (ORCPT ); Tue, 7 Apr 2020 08:34:27 -0400 IronPort-SDR: 329U2Rbvx3P+rIUl/u04CmtCLOElzB8h+pXjbYkgbCt2iAWG9iRI9JA2Ez3wRTqi1P7cmg5q/y vxW1QmZQZzIw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2020 05:34:26 -0700 IronPort-SDR: vVqO4j3FlpZLEXphyoEzhbPXs8/aB4TZ+r0bbz3+CYuPmUA/BJowPj2PYim4HCeeSNEwv0isoM IUsMTtmXDWKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,354,1580803200"; d="scan'208";a="424733196" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 07 Apr 2020 05:34:26 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Apr 2020 05:34:26 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Apr 2020 05:34:25 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.225]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.22]) with mapi id 14.03.0439.000; Tue, 7 Apr 2020 20:34:22 +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+9LbKg7EWeAgAAN1ICABGlOgIAANIUAgAAfgACAAEmBgIAaXLeAgBNIJvA= Date: Tue, 7 Apr 2020 12:34:22 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E1738B3097@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: 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+IE9uIDMvOS8yMDIwIDExOjA1IEFNLCBQZXRlciBaaWpsc3RyYSB3cm90ZToNCj4gPj4+IElu IHRoZSBuZXcgcHJvcG9zYWwsIEtWTSB1c2VyIGlzIHRyZWF0ZWQgdGhlIHNhbWUgYXMgb3RoZXIg aG9zdA0KPiA+Pj4gZXZlbnRzIHdpdGggZXZlbnQgY29uc3RyYWludC4gVGhlIHNjaGVkdWxlciBp cyBmcmVlIHRvIGNob29zZQ0KPiA+Pj4gd2hldGhlciBvciBub3QgdG8gYXNzaWduIGEgY291bnRl ciBmb3IgaXQuDQo+ID4+IFRoYXQncyB3aGF0IGl0IGRvZXMsIEkgdW5kZXJzdGFuZCB0aGF0LiBJ J20gc2F5aW5nIHRoYXQgdGhhdCBpcw0KPiA+PiBjcmVhdGluZyBhcnRpZmljaWFsIGNvbnRlbnRp b24uDQo+ID4+DQo+ID4+DQo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