aboutsummaryrefslogtreecommitdiff
path: root/migration/qemu-file.h
diff options
context:
space:
mode:
authorLukas Straub <lukasstraub2@web.de>2023-04-20 11:48:31 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-08 15:25:26 +0200
commit4024cc8506139a8f04f3f99ba478880410af10f5 (patch)
treefa93c6e178d946193a406c37d522aefbe4141a86 /migration/qemu-file.h
parentb1f17720c117d4811b5571d87dcbc5b99d79266b (diff)
downloadqemu-4024cc8506139a8f04f3f99ba478880410af10f5.zip
qemu-4024cc8506139a8f04f3f99ba478880410af10f5.tar.gz
qemu-4024cc8506139a8f04f3f99ba478880410af10f5.tar.bz2
ram compress: Assert that the file buffer matches the result
Before this series, "nothing to send" was handled by the file buffer being empty. Now it is tracked via param->result. Assert that the file buffer state matches the result. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/qemu-file.h')
-rw-r--r--migration/qemu-file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/qemu-file.h b/migration/qemu-file.h
index 4f26bf6..4ee58a8 100644
--- a/migration/qemu-file.h
+++ b/migration/qemu-file.h
@@ -113,6 +113,7 @@ size_t coroutine_mixed_fn qemu_get_buffer_in_place(QEMUFile *f, uint8_t **buf, s
ssize_t qemu_put_compression_data(QEMUFile *f, z_stream *stream,
const uint8_t *p, size_t size);
int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src);
+bool qemu_file_buffer_empty(QEMUFile *file);
/*
* Note that you can only peek continuous bytes from where the current pointer