projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61abf1e
)
qemu-file: Make ram_control_save_page() use accessors for rate_limit
author
Juan Quintela
<quintela@redhat.com>
Thu, 4 May 2023 11:38:40 +0000
(13:38 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Fri, 5 May 2023 00:01:59 +0000
(
02:01
+0200)
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>
migration/qemu-file.c
patch
|
blob
|
history
diff --git
a/migration/qemu-file.c
b/migration/qemu-file.c
index ccbefc347e2840e316ee628e25074958316864ec..f4cfd05c67b49861ae5980f31a0a30f06140c2a1 100644
(file)
--- a/
migration/qemu-file.c
+++ b/
migration/qemu-file.c
@@
-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 &&