kvm: Synchronize the backup bitmap in the last stage
authorGavin Shan <gshan@redhat.com>
Tue, 9 May 2023 02:21:20 +0000 (12:21 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 06:53:50 +0000 (08:53 +0200)
commitb20cc776922dcf6d97f431a3460e868a9ac3e89e
treedab0af01830e8e21a4b44173e2d9feec8204002e
parent1e493be58708c3003d9e38b09eedf0134c0ca9fe
kvm: Synchronize the backup bitmap in the last stage

In the last stage of live migration or memory slot removal, the
backup bitmap needs to be synchronized when it has been enabled.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Zhenyu Zhang <zhenyzha@redhat.com>
Message-Id: <20230509022122.20888-3-gshan@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c
include/sysemu/kvm_int.h