Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2382019pxj; Mon, 10 May 2021 01:17:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLRjQMPE+n1c7FsBMwgHtW6kxcW6XRxfgPbsBIIWHaoP/HGs4NZcmONvpoIBpXjke3QeGc X-Received: by 2002:a05:6402:1115:: with SMTP id u21mr27809678edv.383.1620634673932; Mon, 10 May 2021 01:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620634673; cv=none; d=google.com; s=arc-20160816; b=KLSbIkb4COkrC5kkAJyxR2RJPikJ3vxuDrAqA0jipYMSAOjkgMsYxdoT8BBrgxqbvq /DzjBMjHnRvl+aRN8hxe6PnveuiVVMTged2gkTfeqWjFJFKdeSAUD5AuSp7sO3DiJZGD ABaukQjuIFvXFruov7bkKV526yFGtX0jL3DURkHJa55KEE94hZc121xWxtcJDLM9luZO ENCzWFrAsVc2qaDLnvwg0lllk96qB2UcMOcKz8e4rFXKmouo2Hta8BTHn7asMT1Gikl7 Hqv+Wrc+CFJwdIAPWAYMTvES/I3h1Bn/Ak/D8/rnibHNfFpdxjGQxo9qyUKwRFy2GpSN 0NuQ== 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=K8ZIF3S87c/8qJCU6TgBjg54z19IGuS/G3geKvmPqIY=; b=rij13N7Uv0Onbms6VYURYmuJCfGrTOQWNpiCoN1glvZu743LcGr43mWAqRJyf8XUC4 3oFE5y9WiGOtNiylwrrX31VE8iXqpi9sg+pdB7qC3dR7x/K9dMqe4Xoxx3tqweJrFkIC pKxbimZgmFjXgLirlwH4jqvyhWOfGPUROJ4ZBtMmOm1jXqVcGM6m/xXFyohuFC53XmTe gc9t/eowgaJA4ILw5B1XixUwNnEBhV7kg73/o7HHMUyEh5qvbDqI7M0xSspnxlYfKlXj QGFM/MA7J7B/PJHi7d+101ENIALyquInYpb+9m+iX6zi6zM1+9QcBsXLe97EIq+D9fOu a5Bw== 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 d15si11893218edu.375.2021.05.10.01.17.30; Mon, 10 May 2021 01:17:53 -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 S230258AbhEJIR0 (ORCPT + 99 others); Mon, 10 May 2021 04:17:26 -0400 Received: from mga12.intel.com ([192.55.52.136]:42716 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbhEJIRW (ORCPT ); Mon, 10 May 2021 04:17:22 -0400 IronPort-SDR: 9qwGzIWPLXjRmc6axNEsIp0//+m0HPNeoPQxLmfuebVtC+0TXg4UWNj1zeDQJZ3GivbhzO4D/O WFCuou+l5+ig== X-IronPort-AV: E=McAfee;i="6200,9189,9979"; a="178727692" X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="178727692" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 01:16:18 -0700 IronPort-SDR: A8O24rmZPMITHaXTHS0g7m9BXC0WTkqwm3V1YI0XUwBk5fle9Ddoeydih1v/U3dUn6YYtesOb5 kfnPuvfGxihQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="408250826" Received: from clx-ap-likexu.sh.intel.com ([10.239.48.108]) by orsmga002.jf.intel.com with ESMTP; 10 May 2021 01:16:15 -0700 From: Like Xu To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , weijiang.yang@intel.com, wei.w.wang@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH v4 01/10] perf/x86/intel: Fix the comment about guest LBR support on KVM Date: Mon, 10 May 2021 16:15:25 +0800 Message-Id: <20210510081535.94184-2-like.xu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510081535.94184-1-like.xu@linux.intel.com> References: <20210510081535.94184-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. Cc: Peter Zijlstra Signed-off-by: Like Xu Reviewed-by: Kan Liang Reviewed-by: Andi Kleen --- I personally recommend this patch to hit the mainline through the KVM tree. 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 2521d03de5e0..612b4bcf0634 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -6249,8 +6249,7 @@ __init int intel_pmu_init(void) x86_pmu.intel_ctrl); /* * 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.31.1