Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2120560ybt; Fri, 3 Jul 2020 01:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKKCvIcmDu+ZnPnOSrzUimiX+2K2PvD4UGDw/Lt7dqDfEusmpRoexYrVnVE3p01pdB/7Nm X-Received: by 2002:a50:ee01:: with SMTP id g1mr31679845eds.264.1593763509179; Fri, 03 Jul 2020 01:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593763509; cv=none; d=google.com; s=arc-20160816; b=uHTbKvgC6Na9jmeOE5gZ3vWfBSLSZcPSCn2SItQt5fmUfasBYasKEv0px82vgdnxTM y8yGWkI8uLUMEhj1q6Dx1wXGimFCd/Y4HC0aCSxVOmLARgDP3EOCorOr6H8vukgX7B/O w+jaHf8iy6F14nEonqngrB3nLBMrYfiQNywQpJSJSuHzsZwdja5VdhAruJkE1KFX6lPu 303kQMsoic64ONAxvAKXkh75+8YpHAxkZ80Du9V8sYn0gSlAia/C3lt7KTddD20o8JNt LdXR0mKhH/xOD6/1jGL6l84eOo0IGCpRMmjbwUzT9yv6s0CgwR5cS+sBbN7KFsP/zUn5 n48A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :ironport-sdr:ironport-sdr; bh=br2wvZwqZXIujyTRanMKs3zexzUiePc2PczCqqmB5Qw=; b=Qy6uY/oovARU9iNHUG23yNB6cFAgRmnJNt99GQfGZniEO3n1vOFgUs7nZglkkq/b6H AHV5Hb5FLYSCsSUy4Bh2rv53qKc9WqQ95wPFGZ0yMOhRtCBkxXAbwbIf/jjMKoyFr7Zh 8wEXKt7FZe4r+g22Ix40tRvoVyY5MbXLVNXA+48Q3Z/HOm+Tdx8SQvdZc0Y96Mx2AIL0 fikb6Mv/i3MZWhwy3ugPi5KrGF0YqdRPGFS0vaKlHNUiON55cgB00M8+JWzcNzLorVzd hGz0Kt9QGe3KVuZ7+s1o14Fch7YGD2pXKK1PpTBQ0ESGW23T5CRObh6PCWLpEp+jwELe Hhog== 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 s26si7372984edx.248.2020.07.03.01.04.45; Fri, 03 Jul 2020 01:05:09 -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 S1726033AbgGCIEL (ORCPT + 99 others); Fri, 3 Jul 2020 04:04:11 -0400 Received: from mga04.intel.com ([192.55.52.120]:52311 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgGCIEL (ORCPT ); Fri, 3 Jul 2020 04:04:11 -0400 IronPort-SDR: Dn229BWwKJqBlu1KVYhxAXyM8jmjxxWZBRTLv8NfopFnXZ/a+3GzGslbBBboSLQfirCDqFUQCC psYF8x8IkT4w== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="144635504" X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="144635504" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2020 01:04:10 -0700 IronPort-SDR: GRIZLHlnhU/QaE2cFWz1y1zrS2QBl46fG2xKdUbPD2Bxojs26x5cUhZW3UKpQnWZPq4inLc1jB mi4DqQ/63sMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="481955282" Received: from likexu-mobl1.ccr.corp.intel.com (HELO [10.238.4.128]) ([10.238.4.128]) by fmsmga006.fm.intel.com with ESMTP; 03 Jul 2020 01:04:07 -0700 Reply-To: like.xu@intel.com Subject: Re: [PATCH v12 00/11] Guest Last Branch Recording Enabling To: Peter Zijlstra , Paolo Bonzini Cc: "Liang, Kan" , Like Xu , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , ak@linux.intel.com, wei.w.wang@intel.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, "Liang, Kan" References: <20200613080958.132489-1-like.xu@linux.intel.com> <20200702074059.GX4781@hirez.programming.kicks-ass.net> <5d3980e3-1c49-4174-4cdb-f40fc21ee6c1@linux.intel.com> <20200702135842.GR4800@hirez.programming.kicks-ass.net> <20200703075646.GJ117543@hirez.programming.kicks-ass.net> From: "Xu, Like" Organization: Intel OTC Message-ID: <84a75c42-8a97-6771-9aab-3f9d3285486e@intel.com> Date: Fri, 3 Jul 2020 16:04:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200703075646.GJ117543@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/3 15:56, Peter Zijlstra wrote: > On Thu, Jul 02, 2020 at 03:58:42PM +0200, Peter Zijlstra wrote: >> On Thu, Jul 02, 2020 at 09:11:06AM -0400, Liang, Kan wrote: >>> On 7/2/2020 3:40 AM, Peter Zijlstra wrote: >>>> On Sat, Jun 13, 2020 at 04:09:45PM +0800, Like Xu wrote: >>>>> Like Xu (10): >>>>> perf/x86/core: Refactor hw->idx checks and cleanup >>>>> perf/x86/lbr: Add interface to get LBR information >>>>> perf/x86: Add constraint to create guest LBR event without hw counter >>>>> perf/x86: Keep LBR records unchanged in host context for guest usage >>>>> Wei Wang (1): >>>>> perf/x86: Fix variable types for LBR registers >>>>> arch/x86/events/core.c | 26 +-- >>>>> arch/x86/events/intel/core.c | 109 ++++++++----- >>>>> arch/x86/events/intel/lbr.c | 51 +++++- >>>>> arch/x86/events/perf_event.h | 8 +- >>>>> arch/x86/include/asm/perf_event.h | 34 +++- >>>> These look good to me; but at the same time Kan is sending me >>>> Architectural LBR patches. >>>> >>>> Kan, if I take these perf patches and stick them in a tip/perf/vlbr >>>> topic branch, can you rebase the arch lbr stuff on top, or is there >>>> anything in the arch-lbr series that badly conflicts with this work? >>>> >>> Yes, I can rebase the arch lbr patches on top of them. >>> Please push the tip/perf/vlbr branch, so I can pull and rebase my patches. >> For now I have: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/vlbr >> >> Once the 0day robot comes back all-green, I'll push it out to >> tip/perf/vlbr and merge it into tip/perf/core. > tip/perf/vlbr now exists, thanks! Hi Peter, Thanks for your patience and professional support on this feature! Thanks, Like Xu