Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp930550pxf; Thu, 25 Mar 2021 18:29:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwee+OoizEFlfdZlzQ2u7yeqgFRLer5I9CH+Fz4/NkDxiouAnq7YJpQr+Ku6Ke0O4PZsDNm X-Received: by 2002:aa7:df14:: with SMTP id c20mr12124201edy.197.1616722145342; Thu, 25 Mar 2021 18:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616722145; cv=none; d=google.com; s=arc-20160816; b=AG+zqec3dpAMw4Prp0sk98OVnIbAufvFDx+eTEJIVI5joUDbarra9NrgExbbd9Igtr x5cZ5h3zjERXCbniIqDiN4d4ZyDlOWO0LoWmwhOxiuyc0htV/2Ov29z2N2PcTnHFm15H mS6G5kMmiotEgjw+Rf+gtRpbhs3owmJmXX/AmXSlh/Y+26vKxrIE0TpSxKKkjYK0tA9A CE5qTyCoIwPyUAzYZsFcooUtC92WYRX+PJZrJrwrP0mSGFAnC2xUYJjiu1GIu2ehfNxs lasxtLb/saNuL9g/H8FeMvV4dgZk0vWlkYCTADSbxvjoJd7a6qboFS5dLFbL8/knm7zB jkQw== 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=1XgPB4R/7lnyUpKW9SSr7s28LswDIy2Uy6hVxJcOwXo=; b=Wu7jq5EpDSWvpS9fEWtZLjQnU0j7NHE/ejFkS5O+/1mlisM8zHDM6WIP3q7GUtMXT6 S23erYPJBHVS+ultdXfmqrWBGG9Q2Fe6JY2TSqiY6VmoZEGnmxfOP9y/3BqUYGeYU1WJ /WJIaaJvGr6apCXrbNUGh2SERjp0KvKQw+G7340g8hhhxUFYdi7aRYKOP7L+CUoS9b2o gDe6AOXhBWtPh4NmaPbaCEThPpAXFPBN0BlAVsHUIu0FLKYywXPwzbFvM91fy1AiVB1y Rf7uG2OSvcA0eQrIJCtjuKAdTToAEOi27BkADJACd2yIp9Q1ScIYjJ/T5MVxp5tT9pq9 la9g== 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 v15si6504959edl.21.2021.03.25.18.28.43; Thu, 25 Mar 2021 18:29:05 -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 S230209AbhCZB1R (ORCPT + 99 others); Thu, 25 Mar 2021 21:27:17 -0400 Received: from mga12.intel.com ([192.55.52.136]:51734 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbhCZB1N (ORCPT ); Thu, 25 Mar 2021 21:27:13 -0400 IronPort-SDR: jCocemp5fu5oWda792XYnD7Ltu9E2xIxKj4WW4vttkoSCFwiwsfIiHLOYvU3/e6ub/oTGg1PZf Bgz35p0MvDiw== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="170421818" X-IronPort-AV: E=Sophos;i="5.81,278,1610438400"; d="scan'208";a="170421818" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 18:27:13 -0700 IronPort-SDR: ZewzK8MIaWAqXyYdwRGYWG0EwPp0vob2+bwqlI9DG2alt+wscrOh7xjGDKeyHgSAg/WxEI25+Y 5CAxRWyWfg9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,278,1610438400"; d="scan'208";a="443088972" Received: from clx-ap-likexu.sh.intel.com ([10.239.48.108]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2021 18:27:09 -0700 From: Like Xu To: Peter Zijlstra , Namhyung Kim Cc: pbonzini@redhat.com, Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Kan Liang , wei.w.wang@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, Like Xu , Andi Kleen Subject: [PATCH v5 1/5] perf/x86/intel: Fix the comment about guest LBR support on KVM Date: Fri, 26 Mar 2021 09:19:14 +0800 Message-Id: <20210326011918.183685-2-like.xu@linux.intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210326011918.183685-1-like.xu@linux.intel.com> References: <20210326011918.183685-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 incidentally. 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 37ce38403cb8..382dd3994463 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -5737,8 +5737,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