A single ram_addr (representing a host-virtual address) could be aliased to multiple guest physical addresses. Since the KVM dirty page reporting works on guest physical addresses, we need to clear all of the aliases when a page is migrated, or there is a risk of losing writes to the aliases that were not cleared.
Paolo Paolo Bonzini (2): kvm: extract kvm_log_clear_one_slot kvm: clear dirty bitmaps from all overlapping memslots accel/kvm/kvm-all.c | 114 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 48 deletions(-) -- 1.8.3.1