summary refs log tree commit diff stats
path: root/migration/vmstate.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-05-30 20:39:22 +0200
committerJuan Quintela <quintela@redhat.com>2023-07-26 10:55:56 +0200
commitfc95c63b603221b3bdedc544a39030fbea3f47a4 (patch)
tree6859b47b5cc8a903f2a34e939ecba2e2eb68f470 /migration/vmstate.c
parent06c48d6b37c598787fa60421ca15e8876c2fa402 (diff)
downloadfocaccia-qemu-fc95c63b603221b3bdedc544a39030fbea3f47a4.tar.gz
focaccia-qemu-fc95c63b603221b3bdedc544a39030fbea3f47a4.zip
qemu-file: Rename qemu_file_transferred_ fast -> noflush
Fast don't say much.  Noflush indicates more clearly that it is like
qemu_file_transferred but without the flush.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230530183941.7223-2-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/vmstate.c')
-rw-r--r--migration/vmstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/vmstate.c b/migration/vmstate.c
index af01d54b6f..31842c3afb 100644
--- a/migration/vmstate.c
+++ b/migration/vmstate.c
@@ -361,7 +361,7 @@ int vmstate_save_state_v(QEMUFile *f, const VMStateDescription *vmsd,
                 void *curr_elem = first_elem + size * i;
 
                 vmsd_desc_field_start(vmsd, vmdesc_loop, field, i, n_elems);
-                old_offset = qemu_file_transferred_fast(f);
+                old_offset = qemu_file_transferred_noflush(f);
                 if (field->flags & VMS_ARRAY_OF_POINTER) {
                     assert(curr_elem);
                     curr_elem = *(void **)curr_elem;
@@ -391,7 +391,7 @@ int vmstate_save_state_v(QEMUFile *f, const VMStateDescription *vmsd,
                     return ret;
                 }
 
-                written_bytes = qemu_file_transferred_fast(f) - old_offset;
+                written_bytes = qemu_file_transferred_noflush(f) - old_offset;
                 vmsd_desc_field_end(vmsd, vmdesc_loop, field, written_bytes, i);
 
                 /* Compressed arrays only care about the first element */