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 0728DC636CC for ; Tue, 7 Feb 2023 14:57:51 +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: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o3GXZmb2rk7xK/ekU1knogYHPUSvn/ziNqOgWnBqhqk=; b=OAw61ycJmy+UNr Ym0UZHWCgnjEB2iuVYyvEpfXIl6djyLhWLlMhhxXOB19S6xZOoA30HFy+0aQgz4QyKQuNDjZT7Kq8 6nitvaiIIsMJ1w4T/ryr0uuiEEpdWga22D3fjoMDqDvueYMcfHK8XbwENCQhI+nyDlH4q+uVvMY/0 VtZMpbwetYb5RkbB7Rn1KlcRgZ/1kVh62FtVGdU3VHTG3+QA7xiZjRTfEsUAom9K13BdaYjEu7hhD bA/61SEJlR5hK3TLKrIHfSuuOxDfyH+VgnqnMFLH1r7QWSD6QTkozSAX5Wi3hABBWyOWJd4bbH6o8 x61NOMiXvWQSmxWrLZyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPPP1-00CaJc-3D; Tue, 07 Feb 2023 14:56:59 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPPOx-00CaIt-Hf for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2023 14:56:57 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9510FB819AD; Tue, 7 Feb 2023 14:56:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4056BC4339B; Tue, 7 Feb 2023 14:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675781812; bh=fk+5VsNRPv8WZZS1NH04wxVwjAGJtruHmvu1fbvRLSQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=i3t5Cw8mdHW1zAVBWvpSBLbDIeVSzDt5XTsX8n7CgwfD0pYQ3vzvnBNgzS27QEuG3 qZdvS+c97/hQvHupN6EH05Z9yYe9x3pBnayWdRyCfctVReeydoHPL71nZ154t8Ccce zLDaXfG7HVfylnFplvR5bSdWQ+rPO/BEP+WeJfeku+IeyUFJxa1Rm1FhYpLoHqUHgP ZjUvw9OW2JNz0JENKGhQ530bcvis889jN7rNwhuCEvxr2Rfpzulfn4acM1phkHfZEU NeRlf+/vi82NeJq6G3X9OVocaFLHCATHNhjohvyflJci/gF4mgyo6xGy9DdPuj1RJx dKrr1W3D4xoQw== 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.95) (envelope-from ) id 1pPPOr-008OSf-Sd; Tue, 07 Feb 2023 14:56:49 +0000 Date: Tue, 07 Feb 2023 14:56:49 +0000 Message-ID: <86r0v1zfpq.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: James Morse , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Quentin Perret , Will Deacon , Reiji Watanabe , Suzuki K Poulose , Zenghui Yu Subject: Re: [PATCH 3/5] KVM: arm64: Only return attributes from stage2_update_leaf_attrs() In-Reply-To: References: <20230111000300.2034799-1-oliver.upton@linux.dev> <20230111000300.2034799-4-oliver.upton@linux.dev> <87ilhde9me.wl-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/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, james.morse@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, qperret@google.com, will@kernel.org, reijiw@google.com, suzuki.poulose@arm.com, yuzenghui@huawei.com 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-20230207_065655_907071_A2FD6047 X-CRM114-Status: GOOD ( 29.39 ) 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 Thu, 02 Feb 2023 22:08:37 +0000, Oliver Upton wrote: > > On Wed, Jan 11, 2023 at 05:21:13PM +0000, Oliver Upton wrote: > > Hey Marc, > > > > On Wed, Jan 11, 2023 at 08:52:25AM +0000, Marc Zyngier wrote: > > > [+ Suzuki and Zenghui who are missing from the Cc list] > > > > Doh! Just switched over to working out of a new git tree and didn't move > > over my cc-cmd. Apologies to you two. > > > > > On Wed, 11 Jan 2023 00:02:58 +0000, > > > Oliver Upton wrote: > > > > > > > > Returning a single PTE from stage2_update_leaf_attrs() doesn't make a > > > > great deal of sense given that the function could be used to apply a > > > > change to a range of PTEs. Instead, return a bitwise OR of attributes > > > > from all the visited PTEs. > > > > > > I find this amalgamation of attributes quite confusing, and I have a > > > hard time attaching semantics to the resulting collection of bits. > > > > > > It also means that you cannot reason about a particular attribute > > > being 0 if any of the neighbour PTEs has this bit set. > > > > Very true. What I had really wanted to do was make a walker that allows > > software to check the state of specific attribute bit(s) within a range > > of memory instead of returning all of them. I decided against it because > > it would put more churn on other callers or require a new walker > > entirely. > > > > Anyway, I can go about that change to make this a bit easier to reason > > about. Thoughts? > > LOL, I thought I hadn't replied which is why I didn't hear anything > back. Ball is in your court, Marc, any thoughts? Huh, I clearly missed that email. Sorry about the delay. Having a separate walker doesn't strike me as unreasonable. This clearly is something different from the existing walkers, and it is bound to be very little code anyway. Thanks, 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