From patchwork Tue Oct 30 08:32:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 1668871 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D8159DF2AB for ; Tue, 30 Oct 2012 08:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756551Ab2J3Iea (ORCPT ); Tue, 30 Oct 2012 04:34:30 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:41317 "EHLO mail.valinux.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015Ab2J3IdU (ORCPT ); Tue, 30 Oct 2012 04:33:20 -0400 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id 9DCCA181C6; Tue, 30 Oct 2012 17:33:13 +0900 (JST) Received: (nullmailer pid 29448 invoked by uid 1000); Tue, 30 Oct 2012 08:33:13 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org, kvm@vger.kernel.org Cc: quintela@redhat.com, pbonzini@redhat.com, owasserm@redhat.com, avi@redhat.com, dlaor@redhat.com, mdroth@linux.vnet.ibm.com, t.hirofuchi@aist.go.jp, satoshi.itoh@aist.go.jp, stefanha@gmail.com, yoshikawa.takuya@oss.ntt.co.jp, benoit.hudzia@gmail.com, aarcange@redhat.com, chegu_vinod@hp.com, aliguori@us.ibm.com Subject: [PATCH v3 18/35] migration: export migrate_fd_completed() and migrate_fd_cleanup() Date: Tue, 30 Oct 2012 17:32:54 +0900 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This will be used by postcopy migration. Signed-off-by: Isaku Yamahata --- migration.c | 4 ++-- migration.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index 8fcb466..00b0bc2 100644 --- a/migration.c +++ b/migration.c @@ -242,7 +242,7 @@ void qmp_migrate_set_capabilities(MigrationCapabilityStatusList *params, /* shared migration helpers */ -static int migrate_fd_cleanup(MigrationState *s) +int migrate_fd_cleanup(MigrationState *s) { int ret = 0; @@ -272,7 +272,7 @@ void migrate_fd_error(MigrationState *s) migrate_fd_cleanup(s); } -static void migrate_fd_completed(MigrationState *s) +void migrate_fd_completed(MigrationState *s) { DPRINTF("setting completed state\n"); if (migrate_fd_cleanup(s) < 0) { diff --git a/migration.h b/migration.h index 73416ba..2d27738 100644 --- a/migration.h +++ b/migration.h @@ -74,7 +74,9 @@ int fd_start_incoming_migration(const char *path); int fd_start_outgoing_migration(MigrationState *s, const char *fdname); +int migrate_fd_cleanup(MigrationState *s); void migrate_fd_error(MigrationState *s); +void migrate_fd_completed(MigrationState *s); void migrate_fd_connect(MigrationState *s);