diff options
author | Peter Xu <peterx@redhat.com> | 2021-05-06 12:05:40 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-26 14:49:45 +0200 |
commit | b87eaa9b8237f4d97950ca0f78309407212cfdc5 (patch) | |
tree | aa5b94543d0a1f7cf71303eb94beeac3a6e8a216 /nbd/common.c | |
parent | 70cbae429ef3a7c36facd418da2c00e01ae51cb7 (diff) | |
download | qemu-b87eaa9b8237f4d97950ca0f78309407212cfdc5.zip qemu-b87eaa9b8237f4d97950ca0f78309407212cfdc5.tar.gz qemu-b87eaa9b8237f4d97950ca0f78309407212cfdc5.tar.bz2 |
memory: Introduce log_sync_global() to memory listener
Some of the memory listener may want to do log synchronization without
being able to specify a range of memory to sync but always globally.
Such a memory listener should provide this new method instead of the
log_sync() method.
Obviously we can also achieve similar thing when we put the global
sync logic into a log_sync() handler. However that's not efficient
enough because otherwise memory_global_dirty_log_sync() may do the
global sync N times, where N is the number of flat ranges in the
address space.
Make this new method be exclusive to log_sync().
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210506160549.130416-2-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'nbd/common.c')
0 files changed, 0 insertions, 0 deletions