From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E174FC00A8F for ; Tue, 24 Oct 2023 09:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234002AbjJXJWs (ORCPT ); Tue, 24 Oct 2023 05:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjJXJWq (ORCPT ); Tue, 24 Oct 2023 05:22:46 -0400 Received: from out-201.mta0.migadu.com (out-201.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9B1EF9 for ; Tue, 24 Oct 2023 02:22:40 -0700 (PDT) Date: Tue, 24 Oct 2023 09:22:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698139358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iQHrjam2voLfNM7Ldr1znGEGuCMfWMBUcs8WR9mD83Y=; b=tAF4FrKSXjarPxwHmKlimoCFuzzYK58GpnmGJMTnupIUrxXxHh/UH1SmwLPaWd25Lp990u E0Zwt0c1wKr87A3/It1Nu8FEAJOj7JtPvxsdA3BqUqYSwiIFteHPDzhbPPwQDcIHbJJyL4 nK43fI4eFYu6mI8+wkkgs9vtf3gddic= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Raghavendra Rao Ananta Cc: Marc Zyngier , Alexandru Elisei , James Morse , Suzuki K Poulose , Paolo Bonzini , Zenghui Yu , Shaoqin Huang , Jing Zhang , Reiji Watanabe , Colton Lewis , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v8 04/13] KVM: arm64: PMU: Set PMCR_EL0.N for vCPU based on the associated PMU Message-ID: References: <20231020214053.2144305-1-rananta@google.com> <20231020214053.2144305-5-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020214053.2144305-5-rananta@google.com> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20, 2023 at 09:40:44PM +0000, Raghavendra Rao Ananta wrote: [...] > +int kvm_arm_pmu_get_max_counters(struct kvm *kvm) > +{ > + struct arm_pmu *arm_pmu = kvm->arch.arm_pmu; > + > + lockdep_assert_held(&kvm->arch.config_lock); This lockdep assertion is misleading. Readers of kvm_arch::arm_pmu *are not* serialized by the config_lock. -- Thanks, Oliver