Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp207558pxb; Fri, 15 Jan 2021 00:48:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMdV8K3UNqvqxkhg7nZKvRjgaMMrLoBbBQRuugMp0E2fvHAhZSVpVgZBW172iB+PdP8vOk X-Received: by 2002:a17:906:3753:: with SMTP id e19mr8127293ejc.267.1610700491333; Fri, 15 Jan 2021 00:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610700491; cv=none; d=google.com; s=arc-20160816; b=SU3+0OwvA+zepNgFgXvHxXJ/MLs5S0DxIGjy2epUVq9r9lnRxNdm7WxuQPp1ocBMBK J3PfA+iRQV1/WRwk62FMhdysr369xMiFvkJIdlU/HKB/VBXve+B1CgcGjef4WI/P3/O3 GPDe4pmLc/4hfqh3A1fYFwcx2QTuPkhwOUR9tifp1pAG+E8OSc5WgZY9OVkePedU8cdH fptA6NsBvzMQWUinFspTWd+eNfsJJhluqPaI1O+wueBB7p27uDWP6XIzY8za0vBSgukJ jS6pe8AmnpT3gDi+fzAPgfxCUjYnrZqxfTEmXjSEcTR8o19vgok7yXa1ARmBQ23PkSPU iHvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=aYU+YfnxW+p/pZDQXtoI/Gale/LkF8icEAzk0G0oIWM=; b=Y+CTsdmn/TRK5OYeB08Bqq1p0T24Tu4UoMbRbVF3I+NUQOBF+vFIZ76QUTNttJQz0Q CI5T2fTtg1oqjhMq95oyNCp23pkh3t1nVYH6gxFEN0UEWvwi0HiMd9Vx5TYy6ZsXK2i+ fgmhX2UUXENg2kvvcCGrE7RM/Bdsydmbcx7KUxJyTPUBLG37Eoc4qI2y9u+tQwW7gAMC 1LUORhEf9V5H6jwEG1R9TlmMiOMO/Ha70GXHpj0IjooCyKf7ZNH71H2u88YghN6uoXiA tdqicEeYBStKshIFTy8LPbxdQHgQ3AE9dnpg3AEtIPllK6OQYh62piPtyTskRePIOaWd 7Fpw== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si4322637edi.577.2021.01.15.00.47.46; Fri, 15 Jan 2021 00:48:11 -0800 (PST) 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732283AbhAOIT4 (ORCPT + 99 others); Fri, 15 Jan 2021 03:19:56 -0500 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:38489 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbhAOIT4 (ORCPT ); Fri, 15 Jan 2021 03:19:56 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0ULnMmPw_1610698747; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0ULnMmPw_1610698747) by smtp.aliyun-inc.com(127.0.0.1); Fri, 15 Jan 2021 16:19:09 +0800 Subject: Re: [RESEND v13 00/10] KVM: x86/pmu: Guest Last Branch Recording Enabling To: Like Xu , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel Cc: Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , ak@linux.intel.com, wei.w.wang@intel.com, kan.liang@intel.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210108013704.134985-1-like.xu@linux.intel.com> From: Alex Shi Message-ID: <3deac361-05fa-60a5-0d88-4f6b968f10bf@linux.alibaba.com> Date: Fri, 15 Jan 2021 16:19:06 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210108013704.134985-1-like.xu@linux.intel.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/1/8 ????9:36, Like Xu ะด??: > Because saving/restoring tens of LBR MSRs (e.g. 32 LBR stack entries) in > VMX transition brings too excessive overhead to frequent vmx transition > itself, the guest LBR event would help save/restore the LBR stack msrs > during the context switching with the help of native LBR event callstack > mechanism, including LBR_SELECT msr. > Sounds the feature is much helpful for VMM guest performance tunning. Good job! Thanks Alex