Skip to content

Commit

Permalink
qemu-file: Make ram_control_save_page() use accessors for rate_limit
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20230504113841.23130-9-quintela@redhat.com>
  • Loading branch information
Juan Quintela committed May 5, 2023
1 parent 61abf1e commit fae4009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration/qemu-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
int ret = f->hooks->save_page(f, block_offset,
offset, size, bytes_sent);
if (ret != RAM_SAVE_CONTROL_NOT_SUPP) {
f->rate_limit_used += size;
qemu_file_acct_rate_limit(f, size);
}

if (ret != RAM_SAVE_CONTROL_DELAYED &&
Expand Down

0 comments on commit fae4009

Please sign in to comment.