From patchwork Sun Apr 21 21:17:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mrhines@linux.vnet.ibm.com X-Patchwork-Id: 238267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB6242C00EF for ; Mon, 22 Apr 2013 07:22:50 +1000 (EST) Received: from localhost ([::1]:54082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU1ii-0005ql-MR for incoming@patchwork.ozlabs.org; Sun, 21 Apr 2013 17:22:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU1ed-0007dA-8w for qemu-devel@nongnu.org; Sun, 21 Apr 2013 17:18:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UU1eS-0008CF-Dt for qemu-devel@nongnu.org; Sun, 21 Apr 2013 17:18:35 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:54105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU1eS-0008BJ-4L for qemu-devel@nongnu.org; Sun, 21 Apr 2013 17:18:24 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 21 Apr 2013 15:18:23 -0600 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 21 Apr 2013 15:18:22 -0600 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id CB70E38C8054 for ; Sun, 21 Apr 2013 17:18:20 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3LLIKYZ318622 for ; Sun, 21 Apr 2013 17:18:21 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3LLIKTI023961 for ; Sun, 21 Apr 2013 18:18:20 -0300 Received: from mrhinesdev.klabtestbed.com (klinux.watson.ibm.com [9.2.208.21]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r3LLIJhc023852; Sun, 21 Apr 2013 18:18:20 -0300 From: mrhines@linux.vnet.ibm.com To: qemu-devel@nongnu.org Date: Sun, 21 Apr 2013 17:17:55 -0400 Message-Id: <1366579081-6857-7-git-send-email-mrhines@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1366579081-6857-1-git-send-email-mrhines@linux.vnet.ibm.com> References: <1366579081-6857-1-git-send-email-mrhines@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13042121-3620-0000-0000-0000021FFDC2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 32.97.110.160 Cc: aliguori@us.ibm.com, quintela@redhat.com, owasserm@redhat.com, abali@us.ibm.com, mrhines@us.ibm.com, gokul@us.ibm.com, pbonzini@redhat.com Subject: [Qemu-devel] [PATCH v5 06/12] rdma: export qemu_fflush() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Michael R. Hines" RDMA uses this to flush the control channel before sending its own message to handle page registrations. Signed-off-by: Michael R. Hines --- include/migration/qemu-file.h | 1 + savevm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;