diff options
| author | Michael R. Hines | 2013-06-26 03:35:28 +0200 |
|---|---|---|
| committer | Juan Quintela | 2013-06-27 02:38:35 +0200 |
| commit | 2b0ce0797d6bfb13ebefe010da86abced0b7a9b3 (patch) | |
| tree | f98468e6dc3457bc43c451b6ce4fc5cabce3c96c /savevm.c | |
| parent | rdma: add documentation (diff) | |
| download | qemu-2b0ce0797d6bfb13ebefe010da86abced0b7a9b3.tar.gz qemu-2b0ce0797d6bfb13ebefe010da86abced0b7a9b3.tar.xz qemu-2b0ce0797d6bfb13ebefe010da86abced0b7a9b3.zip | |
rdma: introduce qemu_update_position()
RDMA writes happen asynchronously, and thus the performance accounting
also needs to be able to occur asynchronously. This allows anybody
to call into savevm.c to update both f->pos as well as into arch_init.c
to update the acct_info structure with up-to-date values when
the RDMA transfer actually completes.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Tested-by: Chegu Vinod <chegu_vinod@hp.com>
Tested-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
| -rw-r--r-- | savevm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -671,6 +671,11 @@ int qemu_get_fd(QEMUFile *f) return -1; } +void qemu_update_position(QEMUFile *f, size_t size) +{ + f->pos += size; +} + /** Closes the file * * Returns negative error value if any error happened on previous operations or |
