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 DA29AC44501 for ; Thu, 16 Jul 2026 08:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gfnFMUC4iWdWRiNoNKCjBwV+rYNvS5DSxgAZrvVUf4A=; b=cGOqwUi3DsQ4s7tma+0NZuVDGe JEKN5vtr6JccJvjXS28KT6COye0M45xucU/o3uEW6a6by2kT2obdb6IJcyz4Yj4vQa3dLDWeCV3sa SIZRVbfU5pPds/ibYLdZi4kh4xvr5z3hvZyx2OrySHHCvSAVTJgPbjMzNQN9TCuvINxkl6/wk5Wts LLzBfp09Vj7HsI2q5UAXml9D9ELpKBcoHSRZj1NfnMY5+2V8JsvmeOAsYGRdSOJYp50xgoi/Lf0pN 9XdFuCOPwsDwVLLs37lEQtV/dkoJ0UJNePb0ruo629pGhHkrnT5p7StrOqVYrjH7yeT0ZCJZJWyL/ a8x/Rz0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkHtV-0000000GnG2-40Wi; Thu, 16 Jul 2026 08:56:37 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkHtV-0000000GnFo-2kES for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2026 08:56:37 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 1CD1D40D77; Thu, 16 Jul 2026 08:56:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1F071F00A3E; Thu, 16 Jul 2026 08:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784192197; bh=gfnFMUC4iWdWRiNoNKCjBwV+rYNvS5DSxgAZrvVUf4A=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=MDvErm+SY2KmM+yxNcU9Ie+YMrEYjg0OnXNnu/5Q/KNgZ8jo1FMUZErwf6VURpmNb MJDpbOT9G2EEj+xR1/Y11LM2rjsIHWL4rT7lGugSa6wEEg37HXmU3tfR2yugib+zhm /mYhLifzXQEDaX9B+2WFfwHvhpJnrU7Dgxf/KVqiPk9qvsXEsvFR8Ny0WX7ysA/8S8 uFSbVJVTY6HdmIjcuKjy6AsV8spvaAIewOgIYxYp7P+cRSy22je8vqYXwEoq0SaF8s vNiHSNqE5vH40brx3uxfvJbIJ/5gSMPp85+hlo8ydOHBDEqtpFvqbh7KmTkFamvs2U 5CNUPIEhFz03w== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wkHtS-00000005bYF-1itT; Thu, 16 Jul 2026 08:56:34 +0000 Date: Thu, 16 Jul 2026 09:56:33 +0100 Message-ID: <867bmvnwhq.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: Wei-Lin Chang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Itaru Kitayama , Sebastian Ene Subject: Re: [PATCH v4 3/6] KVM: arm64: nv: Add nested revmap broken tracepoint In-Reply-To: References: <20260714115926.2044757-1-weilin.chang@arm.com> <20260714115926.2044757-4-weilin.chang@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oupton@kernel.org, weilin.chang@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, tabba@google.com, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, itaru.kitayama@fujitsu.com, sebastianene@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 16 Jul 2026 07:45:05 +0100, Oliver Upton wrote: > > Hi Wei-Lin, > > On Tue, Jul 14, 2026 at 12:59:22PM +0100, Wei-Lin Chang wrote: > > Add a tracepoint to track when a nested reverse map becomes broken. This > > makes it easier to detect NV performance degradation caused by full > > shadow stage-2 unmaps. > > > > Signed-off-by: Wei-Lin Chang > > I'm not too excited about making a tracepoint out of this, especially > since a 'broken' reverse map is more of a KVM implementation detail > (that could change) than anything else. > > BPF is quite popular at this point, do you think it's reasonable to > instead expect the curious KVM developer to attach a kprobe and inspect > the state of the nested MMU? I was the one asking for a way to report this stuff. I'd be completely fine with BPF as long as we give the recipe for this so that people can readily look at this. Even better, find a way not to have a broken rmap the first place ;-). Thanks, M. -- Without deviation from the norm, progress is not possible.