Re: [PATCH v7 08/14] KVM: s390: cmma: Fix dirty tracking when removing memslot

[email protected] Fri, 31 Jul 2026 13:36:24 +0000
Newsgroups org.kernel.vger.linux-s390,org.kernel.vger.kvm
Message-ID <[email protected]>
> When a memslot is removed, all ptes that mapped the slot are cleared or
> even deallocated. If this happens while the system is in migration
> mode, and if cmma-dirty pages are removed, the cmma-dirty counter will
> not reflect reality.
> 
> Fix by appropriately decrementing the cmma-dirty counter when removing
> a memslot.
> 
> Opportunistically improve kvm_arch_commit_memory_region() to use
> __free() for the struct kvm_s390_mmu_cache.
> 
> Fixes: e38c884df921 ("KVM: s390: Switch to new gmap")
> Signed-off-by: Claudio Imbrenda <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=8