From patchwork Mon Feb 25 18:22:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 222998 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 DDF972C0094 for ; Tue, 26 Feb 2013 05:23:28 +1100 (EST) Received: from localhost ([::1]:59563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2hy-0002Uu-Ut for incoming@patchwork.ozlabs.org; Mon, 25 Feb 2013 13:23:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2he-0002LR-Bk for qemu-devel@nongnu.org; Mon, 25 Feb 2013 13:23:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA2hY-0000LE-Ob for qemu-devel@nongnu.org; Mon, 25 Feb 2013 13:23:06 -0500 Received: from cantor2.suse.de ([195.135.220.15]:33129 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2hY-0000Kn-IN for qemu-devel@nongnu.org; Mon, 25 Feb 2013 13:23:00 -0500 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F2128A5077; Mon, 25 Feb 2013 19:22:59 +0100 (CET) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Mon, 25 Feb 2013 19:22:46 +0100 Message-Id: <1361816570-8707-3-git-send-email-afaerber@suse.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1361816570-8707-1-git-send-email-afaerber@suse.de> References: <1361816570-8707-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 195.135.220.15 Cc: ehabkost@redhat.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= , quintela@redhat.com Subject: [Qemu-devel] [PATCH qom-cpu v3 2/6] stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY 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 Reviewed-by: Juan Quintela Signed-off-by: Andreas Färber Reviewed-by: Eduardo Habkost --- include/migration/vmstate.h | 4 ++++ stubs/vmstate.c | 2 ++ 2 Dateien geändert, 6 Zeilen hinzugefügt(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 6d50f6e..214a8e9 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -119,6 +119,10 @@ struct VMStateDescription { const VMStateSubsection *subsections; }; +#ifdef CONFIG_USER_ONLY +extern const VMStateDescription vmstate_dummy; +#endif + extern const VMStateInfo vmstate_info_bool; extern const VMStateInfo vmstate_info_int8; diff --git a/stubs/vmstate.c b/stubs/vmstate.c index 3682af5..778bc3f 100644 --- a/stubs/vmstate.c +++ b/stubs/vmstate.c @@ -1,6 +1,8 @@ #include "qemu-common.h" #include "migration/vmstate.h" +const VMStateDescription vmstate_dummy = {}; + int vmstate_register_with_alias_id(DeviceState *dev, int instance_id, const VMStateDescription *vmsd,