Re: [RFC PATCH 2/5] KVM: arm64: Add KVM_PGTABLE_PROT_DIRTY
From: Marc Zyngier
Date: Sun Sep 13 2026 - 05:12:17 EST
On Tue, 01 Sep 2026 18:15:53 +0100,
Leonardo Bras <leo.bras@xxxxxxx> 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.