[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 8/9] qemu-file: Make ram_control_save_page() use accessors for ra
From: |
Juan Quintela |
Subject: |
[PATCH 8/9] qemu-file: Make ram_control_save_page() use accessors for rate_limit |
Date: |
Thu, 4 May 2023 13:38:40 +0200 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/qemu-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index e97d180f17..ddebfac847 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -362,7 +362,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 &&
--
2.40.0
- [PATCH 2/9] migration: qemu_file_total_transferred() function is monotonic, (continued)
- [PATCH 2/9] migration: qemu_file_total_transferred() function is monotonic, Juan Quintela, 2023/05/04
- [PATCH 4/9] qemu-file: Make rate_limit_used an uint64_t, Juan Quintela, 2023/05/04
- [PATCH 5/9] qemu-file: No need to check for shutdown in qemu_file_rate_limit, Juan Quintela, 2023/05/04
- [PATCH 6/9] qemu-file: remove shutdown member, Juan Quintela, 2023/05/04
- [PATCH 8/9] qemu-file: Make ram_control_save_page() use accessors for rate_limit,
Juan Quintela <=
- [PATCH 7/9] qemu-file: Make total_transferred an uint64_t, Juan Quintela, 2023/05/04
- [PATCH 9/9] qemu-file: Account for rate_limit usage on qemu_fflush(), Juan Quintela, 2023/05/04