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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA461EE4996 for ; Tue, 22 Aug 2023 12:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EK3Ge/AoK3jpsY134x8O3uSZwdJf9nZqexVJYtvIF1w=; b=T4sjR64vhmdeaE lPDiL+404fa8rEXyiwskYJsQFDARL7nAoScCDrciNV427kG0mZuBIwsIfwbKf+XzO9kj+rqoH5TDq syV9QAooHoZz+mRXcT5Vhv6ErQk7dqM+wti5O+W6UtYOsJ+tYLt5SjAHf9Ns3qpvxHfAO7vw7cbJE kbBzGMP6nNaINJVEiSJcWuKLpw6P7LivdC1buTRcq99PXyGvwcfj6MK0Pwj6qaG5NM95+niJtrUWq 1axYVwxGaiDNSZuB1zPXolqLTezgrKs3WGRRPByTpS+Rzgumivogy6BT0zrkteWhUt08WoETT0FvM 1DBltpR3e2IlPu77oRgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYQg1-00Fuqz-1u; Tue, 22 Aug 2023 12:40:05 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYQfz-00Fuqa-04 for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 12:40:04 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6C12062CE3; Tue, 22 Aug 2023 12:40:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84CBEC433C8; Tue, 22 Aug 2023 12:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692708001; bh=QxJMKfUj5j1DEhUO56xv8uYRlBwjNJuW16s1Ob0iUmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wysn+bltQnLIBS1Fs3gWPqZ/jibBUY7LPtij+ckm9PBv3CLu3FAaDp6K3h6KO6ZpG pBcoaITJ4R2jYJpInVuSn/KqZONhLt9LA4hDR4m7HfMNSlixgAKAO6Is1/fFq+d8Hb +nPgkZz9n1m0wg1Pm2sbs4TaEGW5LxIml5QKWJ6X/F5/Zi86tODQ4Xh/CqzMdsKEqO 76+smr/pDnkTANFxYLAnduSwRp30XpAOBTORHCQjIHPJXjYMQhjJLbrgeAG6FuESw9 pHCjtNai/5NSzkbD4yoBNo8dF1GPCWvx1MqDIc0XRi7wze49lUiAvseLYgmnb9HI0K m8NPLVT7xjT7A== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qYQfv-0071ho-8E; Tue, 22 Aug 2023 13:39:59 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, Marc Zyngier , linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Suzuki K Poulose , Oliver Upton , Mark Rutland , Zenghui Yu , Huang Shijie , James Morse , Leo Yan Subject: Re: [PATCH v2] KVM: arm64: pmu: Resync EL0 state on counter rotation Date: Tue, 22 Aug 2023 13:39:55 +0100 Message-Id: <169270798678.3074463.12855795724918170184.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230820090108.177817-1-maz@kernel.org> References: <20230820090108.177817-1-maz@kernel.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, maz@kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, suzuki.poulose@arm.com, oliver.upton@linux.dev, mark.rutland@arm.com, yuzenghui@huawei.com, shijie@os.amperecomputing.com, james.morse@arm.com, leo.yan@linaro.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_054003_101242_5D83FFE2 X-CRM114-Status: GOOD ( 13.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 20 Aug 2023 10:01:08 +0100, Marc Zyngier wrote: > Huang Shijie reports that, when profiling a guest from the host > with a number of events that exceeds the number of available > counters, the reported counts are wildly inaccurate. Without > the counter oversubscription, the reported counts are correct. > > Their investigation indicates that upon counter rotation (which > takes place on the back of a timer interrupt), we fail to > re-apply the guest EL0 enabling, leading to the counting of host > events instead of guest events. > > [...] Applied to next, thanks! [1/1] KVM: arm64: pmu: Resync EL0 state on counter rotation commit: b1f778a223a2a8ad6262e5233cfc3483bcf6e213 Cheers, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel