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

[email protected]
Newsgroups org.kernel.vger.kvm,org.kernel.vger.linux-s390
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.