Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3189820pxf; Sun, 21 Mar 2021 23:15:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYuntm714jgEuZwpUav/cFLvXknqqARUIhVv9rKTEF+63qzlGYQZ4MggVUBE4Q/WV/eytD X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr15774270ejc.499.1616393750946; Sun, 21 Mar 2021 23:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616393750; cv=none; d=google.com; s=arc-20160816; b=L/u8JuPPXu3gzaY1arVlTnEzCWEIchWiYRO9L2MSuKT022GE2ed4MPolneZAgOfBht fz9QYjdZoXUqEkZ3bun4AGkwurVhKykF7+E3sAsj9tYSp4cCsC6wWceEFidchR5khA3f qy9F7YyE9WeMWGBoRqe3rxeAAVjgV7HHGbIyjsaiUSkdfPRwoHLYIJL+aTdJ1tDNyx89 /FG6d1EFOqKN2iYtu7gOYFN/TphKWiqVNqZtdFVRwl+eEy4fDCz93r/mEgJ4VBTNAiMp Pj5xK+Dcrd83Ns8xB/YbgB2LDtMDyCdu8WHCmeqF3hmCV6dzOS4egahmRufuERq8SExj ZF2Q== 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=MYtqPWrHbVrh525dfyorLp1/P+j6dYCO+obOManjtWQQ0l+q+FBLPLaA9lYhpf8RML Zxz191W/VO4JmMpwqOyZ9RpzaK5p+ZUa4lYX6/vloPNDFBmsEpC6dEMa9Vf7P055iTB0 38H3PY6VRTJkUp0n4AjWMbf4HxJXhBNPbLMreUbrmiIZjx/SZkzYcvftaqSsyWcas7Sw /l11nXc2pTlj0y+fuaxabekPaqPYfKvlPrBbTDrHf52/JsqiGejQwEb5s/IxzeAhj0sv 2ZxkbWpSZWoSmKSn89dfGvO7XIgLem1zBEp5L/RY3e5sLveyO6Vx7ZbQJMekYC/INKWj VGLw== 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 q18si8171830ejr.593.2021.03.21.23.15.28; Sun, 21 Mar 2021 23:15:50 -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 S229884AbhCVGOg (ORCPT + 99 others); Mon, 22 Mar 2021 02:14:36 -0400 Received: from mga11.intel.com ([192.55.52.93]:15223 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhCVGOQ (ORCPT ); Mon, 22 Mar 2021 02:14:16 -0400 IronPort-SDR: FFVkUACtggjlWACOie8u7ueskIdlQ3H6h6ZsiODURTaiqp2PKtMshRyPmlKnSPA8vmYZCYa3rK 84FftOQEYozw== X-IronPort-AV: E=McAfee;i="6000,8403,9930"; a="186889250" X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="186889250" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 23:14:16 -0700 IronPort-SDR: BsPHWuSnN7JOeANQHG+kAXGr6U5b3QeFSJFr5D6ZsYO+BJof8UTT3nnLRsHT3ieJ4NbOCr6F7t hmmLZK80Jn3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="441026256" Received: from clx-ap-likexu.sh.intel.com ([10.239.48.108]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2021 23:14:13 -0700 From: Like Xu To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , Kan Liang , x86@kernel.org, linux-kernel@vger.kernel.org, Like Xu , Andi Kleen Subject: [PATCH v4 RESEND 1/5] perf/x86/intel: Fix the comment about guest LBR support on KVM Date: Mon, 22 Mar 2021 14:06:31 +0800 Message-Id: <20210322060635.821531-2-like.xu@linux.intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210322060635.821531-1-like.xu@linux.intel.com> References: <20210322060635.821531-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