From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC2iT-0000Gw-Lo for qemu-devel@nongnu.org; Wed, 21 Aug 2013 03:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC2iK-0000tK-Cw for qemu-devel@nongnu.org; Wed, 21 Aug 2013 03:20:29 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:35520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC2iJ-0000sa-NY for qemu-devel@nongnu.org; Wed, 21 Aug 2013 03:20:20 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Aug 2013 12:41:14 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 0EED71258051 for ; Wed, 21 Aug 2013 12:49:59 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r7L7KAcw47579324 for ; Wed, 21 Aug 2013 12:50:10 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r7L7KC7O025024 for ; Wed, 21 Aug 2013 12:50:12 +0530 From: Lei Li Date: Wed, 21 Aug 2013 15:18:38 +0800 Message-Id: <1377069536-12658-2-git-send-email-lilei@linux.vnet.ibm.com> In-Reply-To: <1377069536-12658-1-git-send-email-lilei@linux.vnet.ibm.com> References: <1377069536-12658-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 01/18] migration: export MIG_STATE_xxx flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aarcange@redhat.com, aliguori@us.ibm.com, Lei Li , quintela@redhat.com, mrhines@linux.vnet.ibm.com, lagarcia@br.ibm.com, pbonzini@redhat.com, rcj@linux.vnet.ibm.com Signed-off-by: Lei Li --- include/migration/migration.h | 10 ++++++++++ migration.c | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/migration/migration.h b/include/migration/migration.h index 140e6b4..6a24e65 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -28,6 +28,16 @@ struct MigrationParams { bool shared; }; +/* Migration status */ +enum { + MIG_STATE_ERROR = -1, /* Migration failed */ + MIG_STATE_NONE, /* There has been an error */ + MIG_STATE_SETUP, /* Setup stage for a migration */ + MIG_STATE_CANCELLED, /* Migration has been cancelled */ + MIG_STATE_ACTIVE, /* Whether a migration is active */ + MIG_STATE_COMPLETED, /* Migration is successfully completed */ +}; + typedef struct MigrationState MigrationState; struct MigrationState diff --git a/migration.c b/migration.c index 1402fa7..2446a6a 100644 --- a/migration.c +++ b/migration.c @@ -35,15 +35,6 @@ do { } while (0) #endif -enum { - MIG_STATE_ERROR = -1, - MIG_STATE_NONE, - MIG_STATE_SETUP, - MIG_STATE_CANCELLED, - MIG_STATE_ACTIVE, - MIG_STATE_COMPLETED, -}; - #define MAX_THROTTLE (32 << 20) /* Migration speed throttling */ /* Amount of time to allocate to each "chunk" of bandwidth-throttled -- 1.7.7.6