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 E2583C54EBE for ; Sun, 8 Jan 2023 19:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbjAHTNY (ORCPT ); Sun, 8 Jan 2023 14:13:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233104AbjAHTNX (ORCPT ); Sun, 8 Jan 2023 14:13:23 -0500 Received: from out-221.mta0.migadu.com (out-221.mta0.migadu.com [91.218.175.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2187864D1 for ; Sun, 8 Jan 2023 11:13:19 -0800 (PST) Date: Sun, 8 Jan 2023 11:13:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1673205197; 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=EtOSkw9vvFtKfh4yvVAsnzJijn2Et/7oRxLgfYGNWPI=; b=nPcwPea7zsQ+ilcb/b+J2Xj1qgcWvzZyxqZmMpc4PtNi+4wDs2HPxcPMLTe/clGPcB55oZ yyBr23fALcfqDT6tOw/U7QL8LBqazEiCBTf9GaePEbT5W2Vanr5ZHY1bu4hyg17TNEjAO5 1Nfjo46XI8Ai3XOCYDVZCE6VKJBISd8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Reiji Watanabe Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Ricardo Koller , Jing Zhang , Raghavendra Rao Anata Subject: Re: [PATCH 2/7] KVM: arm64: PMU: Use reset_pmu_reg() for PMUSERENR_EL0 and PMCCFILTR_EL0 Message-ID: References: <20221230035928.3423990-1-reijiw@google.com> <20221230035928.3423990-3-reijiw@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221230035928.3423990-3-reijiw@google.com> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Dec 29, 2022 at 07:59:23PM -0800, Reiji Watanabe wrote: > The default reset function for PMU registers (reset_pmu_reg()) > now simply clears a specified register. Use that function for > PMUSERENR_EL0 and PMCCFILTR_EL0, since those registers should > simply be cleared on vCPU reset. AFAICT, the fields in both these registers have UNKNOWN reset values. Of course, 0 is an entirely valid reset value but the architectural behavior should be mentioned in the commit message. -- Thanks, Oliver