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 74B39C88E56 for ; Sun, 13 Sep 2026 09:09:37 +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=ZTmi2IHALfHOiCA8eB+C5FrDQSC6nFg/q9Xm5fb4/JQ=; b=hjtr0f8iR60Nn4OhpODJvu6XmB 12csTBVkJi+nGjEvXqizjEfvJRI3M/y1gXiCwopzUCeJ259ujk3eFR4t1NVDgtYoLZIfRYu24wIro zX1eUuyJQpwsQf1YLS1A/izIGA2TF7vHzom9tWeIfiMvmd3jhNDhdTKQzNpTOigDL8I/bYkIGpqxu n9n+GCcnYNdU2dRGC2ypeyaINvf8HTrYQ9TMmc3zDwNF2P1php9AcT0vf8vmiU+HsMf2N9dSAme1J tQFzGhXtN/1Fo/RedJ51uIOIpmSSY1bvztVLB0dUD+nldexqHH68CtiEiIqHG3i6fVhf98BFbi8R7 uWA5qBKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5gDK-00000001Xgu-3S7Z; Sun, 13 Sep 2026 09:09:30 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5gDJ-00000001Xgn-3nCw for linux-arm-kernel@lists.infradead.org; Sun, 13 Sep 2026 09:09:29 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 1286D60DC1; Sun, 13 Sep 2026 09:09:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9AD91F000FF; Sun, 13 Sep 2026 09:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789290568; bh=ZTmi2IHALfHOiCA8eB+C5FrDQSC6nFg/q9Xm5fb4/JQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=EdhSwkpKJ1cRV6H6TwLDvi9cCY6J2W9/OperZcaGIUfH7etLYtRyBPzkdklJR+SzC Hsv/NpC+95NHhvj2dupvIXXAElt2vzfUQAvaz6O2bBIufiS9k2LfqcdFELDR+aDDff sSQO3RC/CETc+Cdv3PVBpfC49cPqh20bTRjjDwge5KdFhz3KDnwUx1e37fiVs4iZ9m eUl0CMsT+xGG23poOa9j2EoQGlva0Y6BZFeCe+Y9V+iXRhyFhgX5nbga2Kjt5h/U/p 80x3ny9LKEkGt4j6w1V/k+HlflTRMMhQ31Uf95V3PaEqfR4LRL0VSaNcu+Ci/qbjXC 9q0eSdAaHRbYg== 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 1x5gDG-00000008Fr0-1n0k; Sun, 13 Sep 2026 09:09:26 +0000 Date: Sun, 13 Sep 2026 10:09:25 +0100 Message-ID: <86a4pl7c1m.wl-maz@kernel.org> From: Marc Zyngier To: Leonardo Bras Cc: Oliver Upton , Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Raghavendra Rao Ananta , Tian Zheng , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/5] KVM: arm64: Add KVM_PGTABLE_PROT_DIRTY In-Reply-To: <20260901171558.2674031-3-leo.bras@arm.com> References: <20260901171558.2674031-1-leo.bras@arm.com> <20260901171558.2674031-3-leo.bras@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: leo.bras@arm.com, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, rananta@google.com, zhengtian10@huawei.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org 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 Tue, 01 Sep 2026 18:15:53 +0100, Leonardo Bras wrote: > > Second step of changing the encoding for the Stage2 PTE descriptor, > introduce the concept of dirty page, so we can have a writable but not > dirty (WC) page, and a writable and dirty (WD) page. Why should we care about *setting* the dirty bit in the PTE? Under what circumstance do we want to establish a mapping as being dirty? The whole point of DBM is to only set something dirty when it is written to, and this patch breaks this invariant. Maybe you have a good reason to do so, but that's not explained. M. -- Without deviation from the norm, progress is not possible.