]> git.proxmox.com Git - mirror_qemu.git/commit
memory: Fix start offset for bitmap log_clear hook
authorMatt Borgerson <contact@mborgerson.com>
Tue, 18 Feb 2020 10:19:10 +0000 (03:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 22:02:23 +0000 (23:02 +0100)
commit25aa6b3718b6bc936b24045e8f8ba98b47170320
tree16dcb58e8eae2211251ce91028f24a25bf301889
parenta4aad716cbda2ea480ba294cfc7690bef3927f3a
memory: Fix start offset for bitmap log_clear hook

Currently only the final page offset is being passed to the `log_clear`
hook via `memory_region_clear_dirty_bitmap` after it is used as an
iterator in `cpu_physical_memory_test_and_clear_dirty`. This patch
corrects the start address and size of the region.

Signed-off-by: Matt Borgerson <contact@mborgerson.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c