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