[RFC PATCH 2/5] KVM: arm64: Add KVM_PGTABLE_PROT_DIRTY

Marc Zyngier maz at kernel.org
Sun Sep 13 02:09:25 PDT 2026


On Tue, 01 Sep 2026 18:15:53 +0100,
Leonardo Bras <leo.bras at arm.com> 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.



More information about the linux-arm-kernel mailing list