From patchwork Tue Jul 1 11:32:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 366063 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2CE3C14008B for ; Tue, 1 Jul 2014 21:34:15 +1000 (EST) Received: from localhost ([::1]:46325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1wKD-0007Bj-3M for incoming@patchwork.ozlabs.org; Tue, 01 Jul 2014 07:34:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1wIg-00063n-JQ for qemu-devel@nongnu.org; Tue, 01 Jul 2014 07:32:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1wIX-0004Oj-UA for qemu-devel@nongnu.org; Tue, 01 Jul 2014 07:32:38 -0400 Received: from mail.ispras.ru ([83.149.199.45]:33272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1wIX-0004Of-N3 for qemu-devel@nongnu.org; Tue, 01 Jul 2014 07:32:29 -0400 Received: from PASHAISP (unknown [80.250.189.177]) by mail.ispras.ru (Postfix) with ESMTPSA id 09A14540159 for ; Tue, 1 Jul 2014 15:32:29 +0400 (MSK) From: "Pavel Dovgaluk" To: "'QEMU Developers'" Date: Tue, 1 Jul 2014 15:32:30 +0400 Message-ID: <008801cf9520$24ec45f0$6ec4d1d0$@Dovgaluk@ispras.ru> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac+VICSp2+KxzzHCTaWd8UW4Nfilpg== Content-Language: ru X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 83.149.199.45 Subject: [Qemu-devel] [RFC PATCH 20/22] Stub functions 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 Stubs for new functions and objects. Signed-off-by: Pavel Dovgalyuk diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 528e161..b90c60a --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -26,6 +26,7 @@ stub-obj-y += notify-event.o stub-obj-y += pci-drive-hot-add.o stub-obj-$(CONFIG_SPICE) += qemu-chr-open-spice.o stub-obj-y += qtest.o +stub-obj-y += replay.o stub-obj-y += reset.o stub-obj-y += runstate-check.o stub-obj-y += set-fd-handler.o diff --git a/stubs/replay.c b/stubs/replay.c new file mode 100644 index 0000000..368ccfd --- /dev/null +++ b/stubs/replay.c @@ -0,0 +1,72 @@ +#include "qemu-common.h" +#include "sysemu/sysemu.h" +#include "replay/replay.h" +#include "qemu/log.h" + +int replay_mode; +int replay_icount; +QEMUClockType rtc_clock; +int64_t realtime_clock_replay_offset; + +void replay_save_clock(unsigned int kind, int64_t clock) +{ +} + +int64_t replay_read_clock(unsigned int kind) +{ + return 0; +} + +int replay_checkpoint(unsigned int checkpoint) +{ + return 0; +} + +void replay_add_event(unsigned int event_id, void *opaque) +{ +} + +void replay_add_event2(unsigned int event_id, void *opaque, void *opaque2) +{ +} + +int runstate_is_running(void) +{ + return 0; +} + +uint64_t replay_get_current_step(void) +{ + return 0; +} + +void GCC_FMT_ATTR(2, 3) qemu_log_mask(int mask, const char *fmt, ...) +{ +} + +bool replay_has_checkpoint(unsigned int checkpoint) +{ + return false; +} + +void replay_add_bh_event(void *bh, uint64_t id) +{ +} + +void replay_add_thread_event(void *opaque, void *opaque2, uint64_t id) +{ +} + +int64_t replay_get_icount(void) +{ + return 0; +} + +void replay_clock_warp(void) +{ +} + +int replay_get_play_submode(void) +{ + return 0; +} diff --git a/stubs/vmstate.c b/stubs/vmstate.c index 778bc3f..2516403 100644 --- a/stubs/vmstate.c +++ b/stubs/vmstate.c @@ -3,6 +3,9 @@ const VMStateDescription vmstate_dummy = {}; +const VMStateInfo vmstate_info_bool; +const VMStateInfo vmstate_info_int64; + int vmstate_register_with_alias_id(DeviceState *dev, int instance_id, const VMStateDescription *vmsd,