Patchwork [v5,06/12] rdma: export qemu_fflush()

login
register
mail settings
Submitter mrhines@linux.vnet.ibm.com
Date April 23, 2013, 1:55 a.m.
Message ID <1366682139-22122-7-git-send-email-mrhines@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/238714/
State New
Headers show

Comments

mrhines@linux.vnet.ibm.com - April 23, 2013, 1:55 a.m.
From: "Michael R. Hines" <mrhines@us.ibm.com>

RDMA uses this to flush the control channel before sending its
own message to handle page registrations.

Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
---
 include/migration/qemu-file.h |    1 +
 savevm.c                      |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
index c1d8b0f..1f12d5a 100644
--- a/include/migration/qemu-file.h
+++ b/include/migration/qemu-file.h
@@ -94,6 +94,7 @@  double qemu_get_mbps(void);
 size_t qemu_get_max_size(QEMUFile *f, uint64_t transferred_bytes,
                          uint64_t time_spent, uint64_t max_downtime);
 bool qemu_file_mode_is_not_valid(const char *mode);
+void qemu_fflush(QEMUFile *f);
 
 
 static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v)
diff --git a/savevm.c b/savevm.c
index cafe6ac..15fe895 100644
--- a/savevm.c
+++ b/savevm.c
@@ -586,7 +586,7 @@  static inline bool qemu_file_is_writable(QEMUFile *f)
  * If there is writev_buffer QEMUFileOps it uses it otherwise uses
  * put_buffer ops.
  */
-static void qemu_fflush(QEMUFile *f)
+void qemu_fflush(QEMUFile *f)
 {
     ssize_t ret = 0;