cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From 4848a95daabaa6794869126afd7426b76653920f Mon Sep 17 00:00:00 2001
218e99
From: Orit Wasserman <owasserm@redhat.com>
218e99
Date: Wed, 9 Oct 2013 10:09:08 +0200
218e99
Subject: [PATCH 13/25] rdma: export qemu_fflush()
218e99
218e99
RH-Author: Orit Wasserman <owasserm@redhat.com>
218e99
Message-id: <1381313355-15641-4-git-send-email-owasserm@redhat.com>
218e99
Patchwork-id: 54799
218e99
O-Subject: [RHEL7.0 qemu-kvm v2 03/10] rdma: export qemu_fflush()
218e99
Bugzilla: 921465
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
RH-Acked-by: Juan Quintela <quintela@redhat.com>
218e99
218e99
From: "Michael R. Hines" <mrhines@us.ibm.com>
218e99
218e99
RDMA uses this to flush the control channel before sending its
218e99
own message to handle page registrations.
218e99
218e99
Reviewed-by: Juan Quintela <quintela@redhat.com>
218e99
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
Reviewed-by: Chegu Vinod <chegu_vinod@hp.com>
218e99
Tested-by: Chegu Vinod <chegu_vinod@hp.com>
218e99
Tested-by: Michael R. Hines <mrhines@us.ibm.com>
218e99
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
218e99
Signed-off-by: Juan Quintela <quintela@redhat.com>
218e99
(cherry picked from commit be903b2ae7ca750bde2549432c5536087436cf49)
218e99
---
218e99
 include/migration/qemu-file.h | 1 +
218e99
 savevm.c                      | 2 +-
218e99
 2 files changed, 2 insertions(+), 1 deletion(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 include/migration/qemu-file.h |    1 +
218e99
 savevm.c                      |    2 +-
218e99
 2 files changed, 2 insertions(+), 1 deletions(-)
218e99
218e99
diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
218e99
index 7519464..8931e16 100644
218e99
--- a/include/migration/qemu-file.h
218e99
+++ b/include/migration/qemu-file.h
218e99
@@ -110,6 +110,7 @@ void qemu_file_reset_rate_limit(QEMUFile *f);
218e99
 void qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
218e99
 int64_t qemu_file_get_rate_limit(QEMUFile *f);
218e99
 int qemu_file_get_error(QEMUFile *f);
218e99
+void qemu_fflush(QEMUFile *f);
218e99
 
218e99
 static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv)
218e99
 {
218e99
diff --git a/savevm.c b/savevm.c
218e99
index 4e0fab6..d3bd0ec 100644
218e99
--- a/savevm.c
218e99
+++ b/savevm.c
218e99
@@ -608,7 +608,7 @@ static inline bool qemu_file_is_writable(QEMUFile *f)
218e99
  * If there is writev_buffer QEMUFileOps it uses it otherwise uses
218e99
  * put_buffer ops.
218e99
  */
218e99
-static void qemu_fflush(QEMUFile *f)
218e99
+void qemu_fflush(QEMUFile *f)
218e99
 {
218e99
     ssize_t ret = 0;
218e99
 
218e99
-- 
218e99
1.7.1
218e99