mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
ram: Rename qemu_target_page_bits() to qemu_target_page_size()
It was used as a size in all cases except one. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
@@ -654,7 +654,7 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s)
|
||||
info->ram->skipped = 0;
|
||||
info->ram->normal = norm_mig_pages_transferred();
|
||||
info->ram->normal_bytes = norm_mig_pages_transferred() *
|
||||
(1ul << qemu_target_page_bits());
|
||||
qemu_target_page_size();
|
||||
info->ram->mbps = s->mbps;
|
||||
info->ram->dirty_sync_count = ram_dirty_sync_count();
|
||||
info->ram->postcopy_requests = ram_postcopy_requests();
|
||||
@@ -2009,7 +2009,7 @@ static void *migration_thread(void *opaque)
|
||||
10000 is a small enough number for our purposes */
|
||||
if (ram_dirty_pages_rate() && transferred_bytes > 10000) {
|
||||
s->expected_downtime = ram_dirty_pages_rate() *
|
||||
(1ul << qemu_target_page_bits()) / bandwidth;
|
||||
qemu_target_page_size() / bandwidth;
|
||||
}
|
||||
|
||||
qemu_file_reset_rate_limit(s->to_dst_file);
|
||||
|
||||
Reference in New Issue
Block a user