Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1108658lqo; Fri, 17 May 2024 10:53:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIDu+dJQR34LcDS0tfWCOo9pd7hU5mZ7Il4XpEWdyLcpRPDxhNS93ynQ0/q7uQRgOSmF/+NkUneJ+ExJJ/3Pp1wJDL/HO07WuDOy7GeA== X-Google-Smtp-Source: AGHT+IH+pzdHcabwniPNpgMFM6ijKZQ7+BV2sRdW+clbNm0HEUCuvyP5GaEmQN/pofH+OTeZMpuj X-Received: by 2002:a50:f605:0:b0:56b:ec47:a846 with SMTP id 4fb4d7f45d1cf-5734d5ceb43mr14734967a12.25.1715968398580; Fri, 17 May 2024 10:53:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715968398; cv=pass; d=google.com; s=arc-20160816; b=WvQFoDbj7MT8ekP0lLIpaw4ydXDmJGIdtIpxCMxLGiGf8aFi5nH6lncwOhEvf/n8/2 VaW/wj2s151RH6u2vMygDpU/6nUX9qFb6ZCCZOPt/Tc6llqJUneJ6rTJnM/wOheH+3R4 QcaxydqBxAt5YNmN23QSHYzDSqGj32nMJWwRZryotM0haJYkBZANx7JpjGnSnILw/egZ d4T8fJW+/veEaD06WZss2spxt4U7GU5J/WajxV8UyOyy8wH270RXsQaoullw8GE7kMLk f1LuxoHoy9EhAm7b7n2vz45C68X0UaK/gRijLriya949ZnSEJhQW0/O9dhvbBHRECdH2 OYKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=1b3X2JvgnH28eJymLWDZCCqY4xP7X8B28QNw1JqxSDU=; fh=yF1APpr3318APKMtXwPPdS87cStHuY3MrSHDsEoQExo=; b=CeQbezhuB37+RTPH0kkPkM9AVfK17zU+1jsW2PxKJIygAK/mH6Gtah/FpFpcC958NA aDhf8muabDr3nYM3r0RF3f+fZnXHo9YaUEmPQfP/YQP9+cQvzMWBvbxcBu3hhIsEuZXm iUDngLpa4+FrtJtLL5xiiD6PNBbxjsCwrBRydz3Cgf6CYMUUP7ytG/io0Dyb9pMWAaLp yMnKsyIecZie9BL+PBa3HH/JhygDTn+XbOR5q9yS7wmHLzn0YC9P3grUzaXkjgtZFB6I SvUfkSsm/arjJ6kl87OWmfYlfEI9gBhC6cknO77th522A7oXkk91krnvbtfDHg1ytPbo Ln9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bf+iiWoo; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-575203abdddsi641848a12.328.2024.05.17.10.53.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:53:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bf+iiWoo; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 74E521F2604A for ; Fri, 17 May 2024 17:42:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF3C01422D4; Fri, 17 May 2024 17:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bf+iiWoo" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 376821420C8 for ; Fri, 17 May 2024 17:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715967604; cv=none; b=VD/xcxxNfUdw5HS2H8LAV8NCxAkNJOfiFkgAPN9YeXbMKrzc6jnYsuus7ENr6SzoVBSHscOP0XLRdisvZ1SskODdyOL08gt/2ESmd+p9XESBXLa9YpWzKhdJDMflKZ1jsbgVf5uXtk5gLVNAK+tKS+Z/QfCPvIbeWwbhfLDZxXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715967604; c=relaxed/simple; bh=W4F7sJUHxFqCTId2bNTUdmAnN3//eoKwFQZjhNWBFKQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=TV+7ujssVoYzXwcZ+nspluxEz25LXVF+OMr/h3njJpuX5pI4kqmSATlrT3Q9uirCEdGNy6qzRhWYdZKg4nREjM0tjvLFnEYG6HBsCu3tDOdPRtyKYyPwQRnYPseicPC7PmMhQtqrsPEIZvL3rHxHnmKjbahUVrhRPA/thDbWvp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bf+iiWoo; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-620a2321b0fso154345437b3.3 for ; Fri, 17 May 2024 10:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715967601; x=1716572401; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=1b3X2JvgnH28eJymLWDZCCqY4xP7X8B28QNw1JqxSDU=; b=bf+iiWooKboF4o7W6rhqFd7Jffk2+esxAqp/Von2WynQIc0X7DbIaUzBkA95hbv6yZ /HSbCxJV9wCILDXfK+GgI3hbFKEc15NMGRuR5g70AsyAZfBghVen7pTLjMdn9p/lnLrk sNd1lrcjU9MocDH93uvo0cZylsTC/Rqhb+dHyWxlp9jMY23OWdrjoYJy6gxhqkD5sr5c 3oXxYNk7Xo+c7ZMpbIwtdyK+DeOswNfBPk3vpv1W3ttHbN8G2HA+hj5F2R2MD1KBWaTV 2rTgEK5AwYUMiX9IJ4eFTSS+hfAQF9WzLKMgBpFRbrJpbtIRXQGyK1E55L8fcIL92hA1 omnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715967601; x=1716572401; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1b3X2JvgnH28eJymLWDZCCqY4xP7X8B28QNw1JqxSDU=; b=jDeRmASHDJzs/PicCuuIEINm+SFhrj5BH7QGOrB8mtGQe+m6BXcJAHZhIJt94eZog7 MPUcK34eMuUTun7OsIZjteR3XnuSBpSIGF30WjUswPV9aQOqppdXMG9MDPk6RtapyRsD V2tMTcxtex0EToUtN0OOk0TA/BCx5+/qvoT8xXMZPSJYWEpShAl1DHRDnV7pcvuXP3/P k6fh/AxX6usyUEQKVlneruY61dtCqABSSowEUxYzk4DTi0BAo9FkS5E7dCSl1jYw401d amejVfq4iwBaLwJ6LiU9ksD3Tk2AMVYaNnGg7uqukQs0mqf/gKNoWGoz/mVCr97oXE7r THtQ== X-Forwarded-Encrypted: i=1; AJvYcCXTjNTxL9BhobobCtKrQHoH4NGiUzNx133gKiLcqi6SH/fPVnWcwKtuqXHY2q/rkFS2aygvnv1xdNXfXzdkwIcgkABUA03BKdDO8V8V X-Gm-Message-State: AOJu0Yza6wCQzZyZbFDDhGQ77N2MiIRFcrrn7VT1nPeBGS2uEcNxcux9 hSTBMI7N6syWIUPALef1A0vxT08VQpqAbbZ29nZUqtIUPXGWvVCK6Ws6uy91s6DcU6LlKZ2bEOX Zbw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:690c:6202:b0:61b:ee2c:d5ab with SMTP id 00721157ae682-622aff8fd3bmr50886937b3.1.1715967601361; Fri, 17 May 2024 10:40:01 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 17 May 2024 10:38:46 -0700 In-Reply-To: <20240517173926.965351-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240517173926.965351-1-seanjc@google.com> X-Mailer: git-send-email 2.45.0.215.g3402c0e53f-goog Message-ID: <20240517173926.965351-10-seanjc@google.com> Subject: [PATCH v2 09/49] KVM: x86/pmu: Drop now-redundant refresh() during init() From: Sean Christopherson To: Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Hou Wenlong , Kechen Lu , Oliver Upton , Maxim Levitsky , Binbin Wu , Yang Weijiang , Robert Hoo Content-Type: text/plain; charset="UTF-8" Drop the manual kvm_pmu_refresh() from kvm_pmu_init() now that kvm_arch_vcpu_create() performs the refresh via kvm_vcpu_after_set_cpuid(). Signed-off-by: Sean Christopherson --- arch/x86/kvm/pmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c index a593b03c9aed..31920dd1aa83 100644 --- a/arch/x86/kvm/pmu.c +++ b/arch/x86/kvm/pmu.c @@ -797,7 +797,6 @@ void kvm_pmu_init(struct kvm_vcpu *vcpu) memset(pmu, 0, sizeof(*pmu)); static_call(kvm_x86_pmu_init)(vcpu); - kvm_pmu_refresh(vcpu); } /* Release perf_events for vPMCs that have been unused for a full time slice. */ -- 2.45.0.215.g3402c0e53f-goog