diff options
| author | Wei-Lin Chang <weilin.chang@arm.com> | 2026-10-29 17:52:37 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 12:03:43 +0000 |
| commit | 98b2eab9345c502cb13ef2e347ab5a6c288db482 (patch) | |
| tree | f99d34aad6a122eb995964a512fc8c18c06e37b1 /tools/perf/scripts/python | |
| parent | da9f24dc43361b1cdcbba2fee7b90f4706819fa7 (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
