Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1090095pxb; Thu, 4 Mar 2021 03:03:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfFfh7TxYsWqpKYuJQevneaCv+zrOOXw3YPwyKsiebDkkTX0ZQTJBrsThOo7jCqwm8FBlb X-Received: by 2002:aa7:c1d5:: with SMTP id d21mr3563483edp.167.1614855789581; Thu, 04 Mar 2021 03:03:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614855789; cv=none; d=google.com; s=arc-20160816; b=LTRqwGrcQDg/VUYr6cOjjeHcuo7vMv/T1Sunu9WyvBylMdulyG7Mf84t+Tr5sGbdpX IyKx/Fky5ebfa/mZLm/2vymbWEDKzbpUYHFfgLBZKOvQ+2ZT4s41hR8GxiXAIqYcJ3na 79MzmKWvmIDM4dkoklcRxcz3+MVroFYict/lR3nS1dxuA675lqzcpbmiE8Nn4KJ3wqS/ 6bCJsfa395wVs5avD/mi2zUICj6TDfVdLJcLxgYn3kO0LT9VVEgpoQtpTog3zCc9r2MU ncxAlF+oSTXeFmOylbPefTl1j4XiKkw6SJXfk8oDJ9KoBXS9BBB/7/37bJc2PPlq8gTA /StA== 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=m9dzowEf4X5KzgEE15YJ2qBASugD2GkHWZnf60d+OKE=; b=lA+WNAoq3di8332fcaVJuByXc5cmhhBDhpeQ5mkWeuAjaohJRWl/7b5nQEt7pgbX8s TdopeGTd5/oongLyrTFwkMVdOhi6hAODa374Aawep7LkK378wyKmXiHDZ3aOZguQSY6q fN/qaWzklpTsnXnXDUC6n+cUQ7RZIV6HJLWiOUUsu9G3WFk898K8IRgfCwLAnbs485nD 3dMAqJvMpElfzHsKPPUO0FSO4maFA4Kyf4tJ+KK4JcWJNf3dPZ75QLyDEST9BdJGrA7b /Hom8DQPt8ISKRKjTvs3js8KQw2O0kckj2KaxPyAgjfSeqowjfux2dPBAZ3V7nEQRiA5 OGEA== 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 u13si15735199ejc.243.2021.03.04.03.02.42; Thu, 04 Mar 2021 03:03:09 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574769AbhCCReM (ORCPT + 99 others); Wed, 3 Mar 2021 12:34:12 -0500 Received: from mga11.intel.com ([192.55.52.93]:43939 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237908AbhCCOHE (ORCPT ); Wed, 3 Mar 2021 09:07:04 -0500 IronPort-SDR: TB1/22L4gww7drh+3QrhGvHZjI1Sd5xQZkRJQNgK4zJ97In6n4VrBfmnOoe+hO9/0SNxyOi0wO c5R8oudgEgoA== X-IronPort-AV: E=McAfee;i="6000,8403,9911"; a="183818845" X-IronPort-AV: E=Sophos;i="5.81,220,1610438400"; d="scan'208";a="183818845" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 06:05:14 -0800 IronPort-SDR: +7ZcEdl+QxARo+SGBQqOeSXv5UVPx93AWt7Z3qxJ3EIfgrTlK/wpgOYQ2NwqGzRGpPUThui7fz VDthDZtMhEeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,220,1610438400"; d="scan'208";a="399729274" Received: from clx-ap-likexu.sh.intel.com ([10.239.48.108]) by fmsmga008.fm.intel.com with ESMTP; 03 Mar 2021 06:05:09 -0800 From: Like Xu To: Peter Zijlstra , Paolo Bonzini , Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Kan Liang , Dave Hansen , wei.w.wang@intel.com, Borislav Petkov , kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Like Xu Subject: [PATCH v3 1/9] perf/x86/intel: Fix a comment about guest LBR support Date: Wed, 3 Mar 2021 21:57:47 +0800 Message-Id: <20210303135756.1546253-2-like.xu@linux.intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210303135756.1546253-1-like.xu@linux.intel.com> References: <20210303135756.1546253-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. Cc: Peter Zijlstra Reviewed-by: Kan Liang Signed-off-by: Like Xu --- arch/x86/events/intel/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index d4569bfa83e3..a32acc7733a7 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -5565,7 +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 + * E.g. KVM doesn't support LBR MSR before v5.12. * Check all LBT MSR here. * Disable LBR access if any LBR MSRs can not be accessed. */ -- 2.29.2