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 14CEEF3380F for ; Tue, 17 Mar 2026 08:23:55 +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=/gLdlvecz/LwOdAaAVZZ2AaKTPoggolIkdlDGOJEqGM=; b=LmHKIKujJXyHcYHOuhtDF/mGb7 YFf6xnzOVITQLFckPX8J+BYAUy2Zf2td31e6JznDFxDymy6K5h0gqt0gkmga8iN8yDYd1i0PcDXBR gI/IAHPi83LweMuQjeDE/cMbeFbPEJsyeMhSfLi9eqhbVdvWSuRniVQ56/VJvUIj1+KNsKNcB63TL N8YEYAYHACcErg0midwMU3OqepEkP8Rmkkv14BrGDDHiePzIPFqBrWspoToyJTtwA9Ss7hZIqJKxo DmAAnGij55zZZzX+EAGBPdZMmgkwkuco2K6tk0Tswx1l8EsmZaDuaeMX//2Y4eWIwNfTngLCnxhPR D8nF+BiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2PiP-00000005j3t-3zpq; Tue, 17 Mar 2026 08:23:49 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2PiO-00000005j3m-2o59 for linux-arm-kernel@lists.infradead.org; Tue, 17 Mar 2026 08:23:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 0A5E06132E; Tue, 17 Mar 2026 08:23:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9501C2BCB0; Tue, 17 Mar 2026 08:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773735827; bh=a29QAEXIGssouyozNOpQMVvz8FzM/vNaQNbQJrxfEYk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kKrBrRlg2nhfZpCWNy1iNa2WlY9Wtv1i55T8nPtDy8VCdv4zNkVTSPPhgp1DfuhqH 6M+u0hHC8fjox1sArJoq4PuEvh3rksh7Kc+0uUDF6wnjJSVeDWDRIIzZOkJoH9APcL JHjlaTPYECqXJGRiSgFCSrTfJJug2/tfwnfD8DJrfIS14MqejoJOBlSRs+L+bcYk2H icxg3DzfUIuC2fq4ALW7Mi8ea0Y35UEY8NSRjp2I4G+bEU/a75kl+15tFp/R9ut6fC GLol39g7ByGK6oQcOcY8X4iosNTV34oIAC4+RUcdhmpz4cTp5K6PPC7XsBlLfgoR+Z NsHoC3xrTfciQ== 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 1w2PiL-00000002jJL-3pGs; Tue, 17 Mar 2026 08:23:46 +0000 Date: Tue, 17 Mar 2026 08:23:45 +0000 Message-ID: <86tsue6ezy.wl-maz@kernel.org> From: Marc Zyngier To: Fuad Tabba Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Will Deacon , Quentin Perret Subject: Re: [PATCH 00/17] KVM: arm64: More user_mem_abort() rework In-Reply-To: References: <20260316175451.1866175-1-maz@kernel.org> 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: tabba@google.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, joey.gouly@arm.com, suzuki.poulose@arm.com, oupton@kernel.org, yuzenghui@huawei.com, will@kernel.org, qperret@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 Mon, 16 Mar 2026 20:33:03 +0000, Fuad Tabba wrote: > > On Mon, 16 Mar 2026 at 20:26, Fuad Tabba wrote: > > > > Hi Marc, > > > > On Mon, 16 Mar 2026 at 17:55, Marc Zyngier wrote: > > > > > > Piqued by Fuad's initial set of patches[1] splitting user_mem_abort() > > > into more "edible" functions, I've added my on take on top of it with > > > a few goals in mind: > > > > > > - contextualise the state by splitting kvm_s2_fault into more granular > > > structures > > > > > > - reduce the amount of state that is visible and/or mutable by any > > > single function > > > > > > - reduce the number of variable that simply cache state that is > > > already implicitly available (and often only a helper away) > > > > > > I find the result reasonably attractive, and throwing it at a couple > > > of machines didn't result in anything out of the ordinary. > > > > > > For those interested, I have stashed a branch at [2], and I'd > > > appreciate some feedback on the outcome. > > > > > > [1] https://lore.kernel.org/all/20260306140232.2193802-1-tabba@google.com/ > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=hack/user_mem_abort-rework > > > > The series in hack/user_mem_abort-rework is different from this one. > > Here are the first few patches: > > And I just realized it's because they're based on _my_ patches ... doh! :D I thought I was clear when I wrote "I've added my on take on top of it", but maybe not. In any case, I didn't feel the need to redo what you had already done -- I don't think I'd have come up with something better. In any case, I'd appreciate your feedback! Thanks, M. -- Without deviation from the norm, progress is not possible.