Re: [PATCH] kvm: Reallocate dirty_bmap when we change a slot

2019-11-21 Thread Peter Xu
On Thu, Nov 21, 2019 at 04:56:45PM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > kvm_set_phys_mem can be called to reallocate a slot by something the > guest does (e.g. writing to PAM and other chipset registers). > This can happen in the middle of a migration, a

[PATCH] kvm: Reallocate dirty_bmap when we change a slot

2019-11-21 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" kvm_set_phys_mem can be called to reallocate a slot by something the guest does (e.g. writing to PAM and other chipset registers). This can happen in the middle of a migration, and if we're unlucky it can now happen between the split 'sync' and 'clear'; the clear as