summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWei-Lin Chang <weilin.chang@arm.com>2026-10-29 17:52:37 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 12:03:43 +0000
commit98b2eab9345c502cb13ef2e347ab5a6c288db482 (patch)
treef99d34aad6a122eb995964a512fc8c18c06e37b1 /scripts
parentda9f24dc43361b1cdcbba2fee7b90f4706819fa7 (diff)
KVM: arm64: Fix dirty logging detection in ring-only mode
When checking whether a memslot has dirty logging enabled, the KVM_MEM_LOG_DIRTY_PAGES flag is the source of truth. Previously in memslot_is_logging() we were testing the dirty bitmap only and did not consider dirty ring. With the ring and no bitmap, a logged memslot can still get block mappings, so guest writes to most of a block are never logged and a migration can copy stale memory. Fix this by using kvm_slot_dirty_track_enabled() instead which checks KVM_MEM_LOG_DIRTY_PAGES, within memslot_is_logging(). Fixes: 9cb1096f8590 ("KVM: arm64: Enable ring-based dirty memory tracking") Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> Tested-by: Fuad Tabba <fuad.tabba@linux.dev> Signed-off-by: Wei-Lin Chang <weilin.chang@arm.com> Cc: stable@vger.kernel.org Reviewed-by: Leonardo Bras <leo.bras@arm.com> Reviewed-by: Gavin Shan <gshan@redhat.com> Link: https://patch.msgid.link/20261029175238.3214788-2-weilin.chang@arm.com Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions