Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2709048pxf; Sun, 14 Mar 2021 09:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdFZVucXZHUmA60Hpputkm8CegnEx+XRfWgP5P0aBF9S8T4ldjpucwco+bXezIYhx8CS+q X-Received: by 2002:a17:906:14c4:: with SMTP id y4mr9072164ejc.521.1615737751601; Sun, 14 Mar 2021 09:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615737751; cv=none; d=google.com; s=arc-20160816; b=rMF+O0sZ7q4KSz0vZHuSWE79PWglmkRqtZllfeWgbCDcladK/WfwcsC9EukS6tgn06 S/ePCnHjEMrcn2wo20HtztBExJVEKG9aJj08TluV39ETaZM2JtvpcFu0Xj+PDPGHbWTB 5HoJA/psqQWo/qI/R6CSGVg0dgj43d15MAkLukBtuiEPX6k8rQ2r82EMJQ7ticfx9K9Q o0acCD1SutYyNlqSvJRgvmyr402q+smcy8AcViEwwW0WzK8Z6kf3azsWwUW9t3kuCQb1 dqzkkyK2SdLGzQtXpm6wVziuoVRdzroO+kF/Xhr+Xz8m28i00J1CgmmLDbZuKX6hxY2B jtvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=ECG6/QW2LrZJniLRUreJG0hR87bZgoMy505rc4wsgoY=; b=m53ljGqU6ljSk3Xm4au8ejTyup/4yFiIS8tz7YEiyKrFCnz/U3UrRHpp45w7G4eRmW l3qeofMMzuJA1/s1gSo3X5nEfVNfY5WOCDtOJw4WYuZJwXdRUe+lmPd936rZArqRHgPy fGr8XKRdK6+hL7YGgYBnweSQkPpnmTEZ/YJ05jyHVsaTfdnyyy5EqjMmaHQMFOxYUP63 iYtF1eTx2NXUzucOwc+BxO5rM9R3DdY88IJ1jAu/1lVffTdJVX/qyZOF8IgfiNVqxpKf kiCHszkphY6hu9DLM2jJDOxIqbpY1tsCs9Sg89ZG2Fq5jeeRORgs3iZaXYQqI1ZBuoUV BB+w== 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 a20si9422373eda.157.2021.03.14.09.02.09; Sun, 14 Mar 2021 09:02:31 -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 S234116AbhCNQAq (ORCPT + 99 others); Sun, 14 Mar 2021 12:00:46 -0400 Received: from mga14.intel.com ([192.55.52.115]:7144 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234000AbhCNQA1 (ORCPT ); Sun, 14 Mar 2021 12:00:27 -0400 IronPort-SDR: OVHdDJDy761aUVz4NoFLlpG4uDoeeGp9PvrRzDTHod5skRaHsnNeXddh0kPmJOdDIsYKaj7+Qx Pm1ZH49cI29Q== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="188360683" X-IronPort-AV: E=Sophos;i="5.81,248,1610438400"; d="scan'208";a="188360683" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2021 09:00:27 -0700 IronPort-SDR: rHulesa4GWG3LXQatPywhm6YX639LoH5hnEwNnxYhjw9VPvP0WQD8jeo5aHCTUGCguu+tK3lBt wKDcqn22juWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,248,1610438400"; d="scan'208";a="439530609" Received: from clx-ap-likexu.sh.intel.com ([10.239.48.108]) by FMSMGA003.fm.intel.com with ESMTP; 14 Mar 2021 09:00:24 -0700 From: Like Xu To: Paolo Bonzini , Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, x86@kernel.org, wei.w.wang@intel.com, linux-kernel@vger.kernel.org, Like Xu , Kan Liang , Peter Zijlstra , Borislav Petkov , Ingo Molnar , Andi Kleen Subject: [PATCH v4 01/11] perf/x86/intel: Fix the comment about guest LBR support on KVM Date: Sun, 14 Mar 2021 23:52:14 +0800 Message-Id: <20210314155225.206661-2-like.xu@linux.intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210314155225.206661-1-like.xu@linux.intel.com> References: <20210314155225.206661-1-like.xu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Starting from v5.12, KVM reports guest LBR and extra_regs support when the host has relevant support. Just delete this part of the comment and fix a typo. Cc: Kan Liang Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Ingo Molnar Signed-off-by: Like Xu Reviewed-by: Kan Liang Reviewed-by: Andi Kleen --- arch/x86/events/intel/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index d4569bfa83e3..7bb96ac87615 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -5565,8 +5565,7 @@ __init int intel_pmu_init(void) /* * Access LBR MSR may cause #GP under certain circumstances. - * E.g. KVM doesn't support LBR MSR - * Check all LBT MSR here. + * Check all LBR MSR here. * Disable LBR access if any LBR MSRs can not be accessed. */ if (x86_pmu.lbr_nr && !check_msr(x86_pmu.lbr_tos, 0x3UL)) -- 2.29.2