Message ID | ab1ca756b1cfe67df94f7c6674ea86f6d7232a2f.1340910651.git.quintela@redhat.com |
---|---|
State | New |
Headers | show |
On 06/28/2012 10:22 PM, Juan Quintela wrote: > 1st: we were synchonizing the dirty bitmap before calling > memory_global_dirty_log_start(). > > 2nd: We are marking all pages as dirty anywhere, no reason to go > through all the bitmap to "mark" dirty same pages twice. > > So, call removed. > > Signed-off-by: Juan Quintela <quintela@redhat.com> > --- > arch_init.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch_init.c b/arch_init.c > index 8299c15..c1b4f13 100644 > --- a/arch_init.c > +++ b/arch_init.c > @@ -308,8 +308,6 @@ static int ram_save_setup(QEMUFile *f, void *opaque) > ram_addr_t addr; > RAMBlock *block; > > - memory_global_sync_dirty_bitmap(get_system_memory()); > - > bytes_transferred = 0; > last_block = NULL; > last_offset = 0; > Reviewed-by: Orit Wasserman <owasserm@redhat.com>
diff --git a/arch_init.c b/arch_init.c index 8299c15..c1b4f13 100644 --- a/arch_init.c +++ b/arch_init.c @@ -308,8 +308,6 @@ static int ram_save_setup(QEMUFile *f, void *opaque) ram_addr_t addr; RAMBlock *block; - memory_global_sync_dirty_bitmap(get_system_memory()); - bytes_transferred = 0; last_block = NULL; last_offset = 0;
1st: we were synchonizing the dirty bitmap before calling memory_global_dirty_log_start(). 2nd: We are marking all pages as dirty anywhere, no reason to go through all the bitmap to "mark" dirty same pages twice. So, call removed. Signed-off-by: Juan Quintela <quintela@redhat.com> --- arch_init.c | 2 -- 1 file changed, 2 deletions(-)