From patchwork Thu Dec 29 01:25:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 133472 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9FE72B6F62 for ; Thu, 29 Dec 2011 12:26:21 +1100 (EST) Received: from localhost ([::1]:36884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg4l6-000535-Uw for incoming@patchwork.ozlabs.org; Wed, 28 Dec 2011 20:26:16 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg4kz-00052R-53 for qemu-devel@nongnu.org; Wed, 28 Dec 2011 20:26:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rg4ky-0004HR-65 for qemu-devel@nongnu.org; Wed, 28 Dec 2011 20:26:09 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:42933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg4kx-0004G2-Ql for qemu-devel@nongnu.org; Wed, 28 Dec 2011 20:26:08 -0500 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id 0EFD5875B4; Thu, 29 Dec 2011 10:26:01 +0900 (JST) Received: (nullmailer pid 15161 invoked by uid 1000); Thu, 29 Dec 2011 01:26:00 -0000 From: Isaku Yamahata To: kvm@vger.kernel.org, qemu-devel@nongnu.org Date: Thu, 29 Dec 2011 10:25:41 +0900 Message-Id: X-Mailer: git-send-email 1.7.1.1 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 210.128.90.3 Cc: yamahata@valinux.co.jp, t.hirofuchi@aist.go.jp, satoshi.itoh@aist.go.jp Subject: [Qemu-devel] [PATCH 02/21] arch_init: export RAM_SAVE_xxx flags for postcopy 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 Those constants will be also used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c | 7 ------- arch_init.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 1947396..4ede5ad 100644 --- a/arch_init.c +++ b/arch_init.c @@ -87,13 +87,6 @@ const uint32_t arch_type = QEMU_ARCH; /***********************************************************/ /* ram save/restore */ -#define RAM_SAVE_FLAG_FULL 0x01 /* Obsolete, not used anymore */ -#define RAM_SAVE_FLAG_COMPRESS 0x02 -#define RAM_SAVE_FLAG_MEM_SIZE 0x04 -#define RAM_SAVE_FLAG_PAGE 0x08 -#define RAM_SAVE_FLAG_EOS 0x10 -#define RAM_SAVE_FLAG_CONTINUE 0x20 - static int is_dup_page(uint8_t *page, uint8_t ch) { uint32_t val = ch << 24 | ch << 16 | ch << 8 | ch; diff --git a/arch_init.h b/arch_init.h index 828256c..cf27625 100644 --- a/arch_init.h +++ b/arch_init.h @@ -32,4 +32,11 @@ int tcg_available(void); int kvm_available(void); int xen_available(void); +#define RAM_SAVE_FLAG_FULL 0x01 /* Obsolete, not used anymore */ +#define RAM_SAVE_FLAG_COMPRESS 0x02 +#define RAM_SAVE_FLAG_MEM_SIZE 0x04 +#define RAM_SAVE_FLAG_PAGE 0x08 +#define RAM_SAVE_FLAG_EOS 0x10 +#define RAM_SAVE_FLAG_CONTINUE 0x20 + #endif