Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1761237rda; Tue, 24 Oct 2023 02:22:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDnYkoOAXJYfBx1NaEtJVKZzqbg7usSUtfZvsE7Fv1gDLexyvULadFEBKXp0DySSioqzFR X-Received: by 2002:a17:902:e887:b0:1c6:3222:c67c with SMTP id w7-20020a170902e88700b001c63222c67cmr11165639plg.23.1698139375229; Tue, 24 Oct 2023 02:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698139375; cv=none; d=google.com; s=arc-20160816; b=Z/N1MeqlqDdD9OBNdYKEgrKUeAw0yyjL4YKToLdp8M5kknfC5a3zD2r96A88ENiMXM LikZbFjgmDJVif6N/LkojwfN65Sbsq2MdTVH3T9zXBeVn6A0fQ7dINejHEMw0U5+G1Kg 3W7MyUK1iDaoHht4B5GLvkeoRhpI8xY7R3Xxm1DGman03Q2ICctkyGiHnwUAlJqOjpHj KFCR025p0lq8yPjMluhfwDb4RMtAUJJZcLu1NmAG/9+zK0K1bnzwVQl4Nim9o6olWTB3 AbMYoCAyqtAUT6/QAnkjSe/YYWohtGnrPX92OWqvZuR5as7woOv65cRw8Fnav1tP2zXn q+oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=iQHrjam2voLfNM7Ldr1znGEGuCMfWMBUcs8WR9mD83Y=; fh=4I6BNv7iobpZrRcbueKA7r9RD02xPQmynyU/PeDFguM=; b=SKpIaPu9GCmxRVdhj+sOaXi9lUf+3oK677hDB/6OlJl6IILR23wwqH6qlLK5FjL3wJ LwGT/NJFw0tLEJpXB/WW4mKzbbRfh2zW1raWn00JDLgI4HKvf1kV/35c0l9yESJkKJw1 fzHHPGTC9cgFjIncaA1VDfsPlFO3XBws5dTV2cpEPk8tTEsf0GNRTMGw0U+YqQPyJjAc 9y/0R7K2LqU4tYHYWAnfZpvoxuUby2vLbMcPQG4hDrJtA74sBAHreGKM0Yh5XWo/X6aS nvcNzm6ejmIZfHzdiQd/k5u/ZXxrfQyeVPsuXV2lHeHxAv7yHK1OHRg6OeYBccZIEBht Uqmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tAF4FrKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k4-20020a170902d58400b001bc434b9d95si8024479plh.156.2023.10.24.02.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:22:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tAF4FrKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4F9F680B5A3C; Tue, 24 Oct 2023 02:22:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233962AbjJXJWr (ORCPT + 99 others); Tue, 24 Oct 2023 05:22:47 -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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:22:53 -0700 (PDT) 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