On Mon, Jun 28, 2021 at 12:27:46AM +0800, huang...@chinatelecom.cn wrote: > +static void dirtyrate_global_dirty_log_stop(void) > +{ > + qemu_mutex_lock_iothread();
One thing I missed: maybe we want to sync dirty before stop, so the value will be more accurate. Perhaps a call to memory_global_dirty_log_sync() here? > + memory_global_dirty_log_stop(GLOBAL_DIRTY_DIRTY_RATE); > + qemu_mutex_unlock_iothread(); > +} -- Peter Xu