Re: [PATCH v5] KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU

From: Sean Christopherson

Date: Tue Feb 03 2026 - 19:12:20 EST


On Thu, 15 Jan 2026 09:21:54 -0800, Sean Christopherson wrote:
> Update the nested dirty log test to validate KVM's handling of READ faults
> when dirty logging is enabled. Specifically, set the Dirty bit in the
> guest PTEs used to map L2 GPAs, so that KVM will create writable SPTEs
> when handling L2 read faults. When handling read faults in the shadow MMU,
> KVM opportunistically creates a writable SPTE if the mapping can be
> writable *and* the gPTE is dirty (or doesn't support the Dirty bit), i.e.
> if KVM doesn't need to intercept writes in order to emulate Dirty-bit
> updates.
>
> [...]

Applied to kvm-x86 selftests, without the duplicate sync (hopefully). Thanks
for the reviews!

[1/1] KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU
https://github.com/kvm-x86/linux/commit/a91cc4824660

--
https://github.com/kvm-x86/linux/tree/next