summaryrefslogtreecommitdiffstats
path: root/src/stubs
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-05-11 15:12:49 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2019-05-11 15:12:49 -0500
commit9e80202352dd49bdd9e67b8b906d86f058431505 (patch)
tree5673c17aad6e3833da8c4ff21b5a11f666ec9fbe /src/stubs
downloadhqemu-master.zip
hqemu-master.tar.gz
Initial import of abandoned HQEMU version 2.5.2HEADmaster
Diffstat (limited to 'src/stubs')
-rw-r--r--src/stubs/Makefile.objs40
-rw-r--r--src/stubs/arch-query-cpu-def.c9
-rw-r--r--src/stubs/bdrv-commit-all.c7
-rw-r--r--src/stubs/clock-warp.c7
-rw-r--r--src/stubs/cpu-get-clock.c7
-rw-r--r--src/stubs/cpu-get-icount.c9
-rw-r--r--src/stubs/cpus.c10
-rw-r--r--src/stubs/dump.c28
-rw-r--r--src/stubs/fd-register.c6
-rw-r--r--src/stubs/fdset-add-fd.c7
-rw-r--r--src/stubs/fdset-find-fd.c7
-rw-r--r--src/stubs/fdset-get-fd.c7
-rw-r--r--src/stubs/fdset-remove-fd.c6
-rw-r--r--src/stubs/gdbstub.c7
-rw-r--r--src/stubs/get-fd.c8
-rw-r--r--src/stubs/get-next-serial.c3
-rw-r--r--src/stubs/get-vm-name.c7
-rw-r--r--src/stubs/iothread-lock.c15
-rw-r--r--src/stubs/is-daemonized.c9
-rw-r--r--src/stubs/kvm.c7
-rw-r--r--src/stubs/machine-init-done.c6
-rw-r--r--src/stubs/migr-blocker.c10
-rw-r--r--src/stubs/mon-is-qmp.c9
-rw-r--r--src/stubs/mon-printf.c10
-rw-r--r--src/stubs/monitor-init.c6
-rw-r--r--src/stubs/notify-event.c6
-rw-r--r--src/stubs/qmp_pc_dimm_device_list.c12
-rw-r--r--src/stubs/qtest.c19
-rw-r--r--src/stubs/replay-user.c32
-rw-r--r--src/stubs/replay.c31
-rw-r--r--src/stubs/reset.c13
-rw-r--r--src/stubs/runstate-check.c6
-rw-r--r--src/stubs/set-fd-handler.c10
-rw-r--r--src/stubs/slirp.c11
-rw-r--r--src/stubs/sysbus.c6
-rw-r--r--src/stubs/target-get-monitor-def.c31
-rw-r--r--src/stubs/target-monitor-defs.c9
-rw-r--r--src/stubs/uuid.c12
-rw-r--r--src/stubs/vhost.c6
-rw-r--r--src/stubs/vm-stop.c12
-rw-r--r--src/stubs/vmstate.c19
41 files changed, 482 insertions, 0 deletions
diff --git a/src/stubs/Makefile.objs b/src/stubs/Makefile.objs
new file mode 100644
index 0000000..d7898a0
--- /dev/null
+++ b/src/stubs/Makefile.objs
@@ -0,0 +1,40 @@
+stub-obj-y += arch-query-cpu-def.o
+stub-obj-y += bdrv-commit-all.o
+stub-obj-y += clock-warp.o
+stub-obj-y += cpu-get-clock.o
+stub-obj-y += cpu-get-icount.o
+stub-obj-y += dump.o
+stub-obj-y += fdset-add-fd.o
+stub-obj-y += fdset-find-fd.o
+stub-obj-y += fdset-get-fd.o
+stub-obj-y += fdset-remove-fd.o
+stub-obj-y += gdbstub.o
+stub-obj-y += get-fd.o
+stub-obj-y += get-next-serial.o
+stub-obj-y += get-vm-name.o
+stub-obj-y += iothread-lock.o
+stub-obj-y += is-daemonized.o
+stub-obj-y += machine-init-done.o
+stub-obj-y += migr-blocker.o
+stub-obj-y += mon-is-qmp.o
+stub-obj-y += mon-printf.o
+stub-obj-y += monitor-init.o
+stub-obj-y += notify-event.o
+stub-obj-y += qtest.o
+stub-obj-y += replay.o
+stub-obj-y += replay-user.o
+stub-obj-y += reset.o
+stub-obj-y += runstate-check.o
+stub-obj-y += set-fd-handler.o
+stub-obj-y += slirp.o
+stub-obj-y += sysbus.o
+stub-obj-y += uuid.o
+stub-obj-y += vm-stop.o
+stub-obj-y += vmstate.o
+stub-obj-$(CONFIG_WIN32) += fd-register.o
+stub-obj-y += cpus.o
+stub-obj-y += kvm.o
+stub-obj-y += qmp_pc_dimm_device_list.o
+stub-obj-y += target-monitor-defs.o
+stub-obj-y += target-get-monitor-def.o
+stub-obj-y += vhost.o
diff --git a/src/stubs/arch-query-cpu-def.c b/src/stubs/arch-query-cpu-def.c
new file mode 100644
index 0000000..a975ab4
--- /dev/null
+++ b/src/stubs/arch-query-cpu-def.c
@@ -0,0 +1,9 @@
+#include "qemu-common.h"
+#include "sysemu/arch_init.h"
+#include "qapi/qmp/qerror.h"
+
+CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp)
+{
+ error_setg(errp, QERR_UNSUPPORTED);
+ return NULL;
+}
diff --git a/src/stubs/bdrv-commit-all.c b/src/stubs/bdrv-commit-all.c
new file mode 100644
index 0000000..a8e0a95
--- /dev/null
+++ b/src/stubs/bdrv-commit-all.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "block/block.h"
+
+int bdrv_commit_all(void)
+{
+ return 0;
+}
diff --git a/src/stubs/clock-warp.c b/src/stubs/clock-warp.c
new file mode 100644
index 0000000..5565118
--- /dev/null
+++ b/src/stubs/clock-warp.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "qemu/timer.h"
+
+void qemu_clock_warp(QEMUClockType type)
+{
+}
+
diff --git a/src/stubs/cpu-get-clock.c b/src/stubs/cpu-get-clock.c
new file mode 100644
index 0000000..5b34c97
--- /dev/null
+++ b/src/stubs/cpu-get-clock.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "qemu/timer.h"
+
+int64_t cpu_get_clock(void)
+{
+ return get_clock_realtime();
+}
diff --git a/src/stubs/cpu-get-icount.c b/src/stubs/cpu-get-icount.c
new file mode 100644
index 0000000..d685859
--- /dev/null
+++ b/src/stubs/cpu-get-icount.c
@@ -0,0 +1,9 @@
+#include "qemu-common.h"
+#include "qemu/timer.h"
+
+int use_icount;
+
+int64_t cpu_get_icount(void)
+{
+ abort();
+}
diff --git a/src/stubs/cpus.c b/src/stubs/cpus.c
new file mode 100644
index 0000000..8e6f06b
--- /dev/null
+++ b/src/stubs/cpus.c
@@ -0,0 +1,10 @@
+#include "qemu-common.h"
+#include "qom/cpu.h"
+
+void cpu_resume(CPUState *cpu)
+{
+}
+
+void qemu_init_vcpu(CPUState *cpu)
+{
+}
diff --git a/src/stubs/dump.c b/src/stubs/dump.c
new file mode 100644
index 0000000..8c24eda
--- /dev/null
+++ b/src/stubs/dump.c
@@ -0,0 +1,28 @@
+/*
+ * QEMU dump
+ *
+ * Copyright Fujitsu, Corp. 2011, 2012
+ *
+ * Authors:
+ * Wen Congyang <wency@cn.fujitsu.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu-common.h"
+#include "sysemu/dump-arch.h"
+#include "qmp-commands.h"
+
+int cpu_get_dump_info(ArchDumpInfo *info,
+ const struct GuestPhysBlockList *guest_phys_blocks)
+{
+ return -1;
+}
+
+ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+{
+ return -1;
+}
+
diff --git a/src/stubs/fd-register.c b/src/stubs/fd-register.c
new file mode 100644
index 0000000..d0c34fd
--- /dev/null
+++ b/src/stubs/fd-register.c
@@ -0,0 +1,6 @@
+#include "qemu-common.h"
+#include "qemu/main-loop.h"
+
+void qemu_fd_register(int fd)
+{
+}
diff --git a/src/stubs/fdset-add-fd.c b/src/stubs/fdset-add-fd.c
new file mode 100644
index 0000000..ee16437
--- /dev/null
+++ b/src/stubs/fdset-add-fd.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
+{
+ return -1;
+}
diff --git a/src/stubs/fdset-find-fd.c b/src/stubs/fdset-find-fd.c
new file mode 100644
index 0000000..4f18344
--- /dev/null
+++ b/src/stubs/fdset-find-fd.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+int monitor_fdset_dup_fd_find(int dup_fd)
+{
+ return -1;
+}
diff --git a/src/stubs/fdset-get-fd.c b/src/stubs/fdset-get-fd.c
new file mode 100644
index 0000000..7112c15
--- /dev/null
+++ b/src/stubs/fdset-get-fd.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+int monitor_fdset_get_fd(int64_t fdset_id, int flags)
+{
+ return -1;
+}
diff --git a/src/stubs/fdset-remove-fd.c b/src/stubs/fdset-remove-fd.c
new file mode 100644
index 0000000..7f6d61e
--- /dev/null
+++ b/src/stubs/fdset-remove-fd.c
@@ -0,0 +1,6 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+void monitor_fdset_dup_fd_remove(int dupfd)
+{
+}
diff --git a/src/stubs/gdbstub.c b/src/stubs/gdbstub.c
new file mode 100644
index 0000000..f6a4553
--- /dev/null
+++ b/src/stubs/gdbstub.c
@@ -0,0 +1,7 @@
+#include "stdbool.h" /* bool (in exec/gdbstub.h) */
+#include "stddef.h" /* NULL */
+#include "exec/gdbstub.h" /* xml_builtin */
+
+const char *const xml_builtin[][2] = {
+ { NULL, NULL }
+};
diff --git a/src/stubs/get-fd.c b/src/stubs/get-fd.c
new file mode 100644
index 0000000..9f2c65c
--- /dev/null
+++ b/src/stubs/get-fd.c
@@ -0,0 +1,8 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
+{
+ error_setg(errp, "only QEMU supports file descriptor passing");
+ return -1;
+}
diff --git a/src/stubs/get-next-serial.c b/src/stubs/get-next-serial.c
new file mode 100644
index 0000000..40c56d1
--- /dev/null
+++ b/src/stubs/get-next-serial.c
@@ -0,0 +1,3 @@
+#include "qemu-common.h"
+
+CharDriverState *serial_hds[0];
diff --git a/src/stubs/get-vm-name.c b/src/stubs/get-vm-name.c
new file mode 100644
index 0000000..e5f619f
--- /dev/null
+++ b/src/stubs/get-vm-name.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+
+const char *qemu_get_vm_name(void)
+{
+ return NULL;
+}
+
diff --git a/src/stubs/iothread-lock.c b/src/stubs/iothread-lock.c
new file mode 100644
index 0000000..dda6f6b
--- /dev/null
+++ b/src/stubs/iothread-lock.c
@@ -0,0 +1,15 @@
+#include "qemu-common.h"
+#include "qemu/main-loop.h"
+
+bool qemu_mutex_iothread_locked(void)
+{
+ return true;
+}
+
+void qemu_mutex_lock_iothread(void)
+{
+}
+
+void qemu_mutex_unlock_iothread(void)
+{
+}
diff --git a/src/stubs/is-daemonized.c b/src/stubs/is-daemonized.c
new file mode 100644
index 0000000..c0ee917
--- /dev/null
+++ b/src/stubs/is-daemonized.c
@@ -0,0 +1,9 @@
+#include "qemu-common.h"
+
+/* Win32 has its own inline stub */
+#ifndef _WIN32
+bool is_daemonized(void)
+{
+ return false;
+}
+#endif
diff --git a/src/stubs/kvm.c b/src/stubs/kvm.c
new file mode 100644
index 0000000..e7c60b6
--- /dev/null
+++ b/src/stubs/kvm.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "sysemu/kvm.h"
+
+int kvm_arch_irqchip_create(KVMState *s)
+{
+ return 0;
+}
diff --git a/src/stubs/machine-init-done.c b/src/stubs/machine-init-done.c
new file mode 100644
index 0000000..28a9255
--- /dev/null
+++ b/src/stubs/machine-init-done.c
@@ -0,0 +1,6 @@
+#include "qemu-common.h"
+#include "sysemu/sysemu.h"
+
+void qemu_add_machine_init_done_notifier(Notifier *notify)
+{
+}
diff --git a/src/stubs/migr-blocker.c b/src/stubs/migr-blocker.c
new file mode 100644
index 0000000..300df6e
--- /dev/null
+++ b/src/stubs/migr-blocker.c
@@ -0,0 +1,10 @@
+#include "qemu-common.h"
+#include "migration/migration.h"
+
+void migrate_add_blocker(Error *reason)
+{
+}
+
+void migrate_del_blocker(Error *reason)
+{
+}
diff --git a/src/stubs/mon-is-qmp.c b/src/stubs/mon-is-qmp.c
new file mode 100644
index 0000000..dd26f19
--- /dev/null
+++ b/src/stubs/mon-is-qmp.c
@@ -0,0 +1,9 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+Monitor *cur_mon;
+
+bool monitor_cur_is_qmp(void)
+{
+ return false;
+}
diff --git a/src/stubs/mon-printf.c b/src/stubs/mon-printf.c
new file mode 100644
index 0000000..0ce2ca6
--- /dev/null
+++ b/src/stubs/mon-printf.c
@@ -0,0 +1,10 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+void monitor_printf(Monitor *mon, const char *fmt, ...)
+{
+}
+
+void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
+{
+}
diff --git a/src/stubs/monitor-init.c b/src/stubs/monitor-init.c
new file mode 100644
index 0000000..563902b
--- /dev/null
+++ b/src/stubs/monitor-init.c
@@ -0,0 +1,6 @@
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+void monitor_init(CharDriverState *chr, int flags)
+{
+}
diff --git a/src/stubs/notify-event.c b/src/stubs/notify-event.c
new file mode 100644
index 0000000..32f7289
--- /dev/null
+++ b/src/stubs/notify-event.c
@@ -0,0 +1,6 @@
+#include "qemu-common.h"
+#include "qemu/main-loop.h"
+
+void qemu_notify_event(void)
+{
+}
diff --git a/src/stubs/qmp_pc_dimm_device_list.c b/src/stubs/qmp_pc_dimm_device_list.c
new file mode 100644
index 0000000..b584bd8
--- /dev/null
+++ b/src/stubs/qmp_pc_dimm_device_list.c
@@ -0,0 +1,12 @@
+#include "qom/object.h"
+#include "hw/mem/pc-dimm.h"
+
+int qmp_pc_dimm_device_list(Object *obj, void *opaque)
+{
+ return 0;
+}
+
+ram_addr_t get_current_ram_size(void)
+{
+ return ram_size;
+}
diff --git a/src/stubs/qtest.c b/src/stubs/qtest.c
new file mode 100644
index 0000000..4dfde61
--- /dev/null
+++ b/src/stubs/qtest.c
@@ -0,0 +1,19 @@
+/*
+ * qtest stubs
+ *
+ * Copyright (c) 2014 Linaro Limited
+ * Written by Peter Maydell
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#include "sysemu/qtest.h"
+
+/* Needed for qtest_allowed() */
+bool qtest_allowed;
+
+bool qtest_driver(void)
+{
+ return false;
+}
diff --git a/src/stubs/replay-user.c b/src/stubs/replay-user.c
new file mode 100644
index 0000000..cf33072
--- /dev/null
+++ b/src/stubs/replay-user.c
@@ -0,0 +1,32 @@
+/*
+ * replay.c
+ *
+ * Copyright (c) 2010-2015 Institute for System Programming
+ * of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "sysemu/replay.h"
+
+bool replay_exception(void)
+{
+ return true;
+}
+
+bool replay_has_exception(void)
+{
+ return false;
+}
+
+bool replay_interrupt(void)
+{
+ return true;
+}
+
+bool replay_has_interrupt(void)
+{
+ return false;
+}
diff --git a/src/stubs/replay.c b/src/stubs/replay.c
new file mode 100644
index 0000000..8f98790
--- /dev/null
+++ b/src/stubs/replay.c
@@ -0,0 +1,31 @@
+#include "sysemu/replay.h"
+#include <stdlib.h>
+#include "sysemu/sysemu.h"
+
+ReplayMode replay_mode;
+
+int64_t replay_save_clock(unsigned int kind, int64_t clock)
+{
+ abort();
+ return 0;
+}
+
+int64_t replay_read_clock(unsigned int kind)
+{
+ abort();
+ return 0;
+}
+
+bool replay_checkpoint(ReplayCheckpoint checkpoint)
+{
+ return true;
+}
+
+bool replay_events_enabled(void)
+{
+ return false;
+}
+
+void replay_finish(void)
+{
+}
diff --git a/src/stubs/reset.c b/src/stubs/reset.c
new file mode 100644
index 0000000..ad28725
--- /dev/null
+++ b/src/stubs/reset.c
@@ -0,0 +1,13 @@
+#include "hw/hw.h"
+
+/* Stub functions for binaries that never call qemu_devices_reset(),
+ * and don't need to keep track of the reset handler list.
+ */
+
+void qemu_register_reset(QEMUResetHandler *func, void *opaque)
+{
+}
+
+void qemu_unregister_reset(QEMUResetHandler *func, void *opaque)
+{
+}
diff --git a/src/stubs/runstate-check.c b/src/stubs/runstate-check.c
new file mode 100644
index 0000000..bd2e375
--- /dev/null
+++ b/src/stubs/runstate-check.c
@@ -0,0 +1,6 @@
+#include "sysemu/sysemu.h"
+
+bool runstate_check(RunState state)
+{
+ return state == RUN_STATE_PRELAUNCH;
+}
diff --git a/src/stubs/set-fd-handler.c b/src/stubs/set-fd-handler.c
new file mode 100644
index 0000000..a8481bc
--- /dev/null
+++ b/src/stubs/set-fd-handler.c
@@ -0,0 +1,10 @@
+#include "qemu-common.h"
+#include "qemu/main-loop.h"
+
+void qemu_set_fd_handler(int fd,
+ IOHandler *fd_read,
+ IOHandler *fd_write,
+ void *opaque)
+{
+ abort();
+}
diff --git a/src/stubs/slirp.c b/src/stubs/slirp.c
new file mode 100644
index 0000000..bd0ac7f
--- /dev/null
+++ b/src/stubs/slirp.c
@@ -0,0 +1,11 @@
+#include "qemu-common.h"
+#include "slirp/slirp.h"
+
+void slirp_pollfds_fill(GArray *pollfds, uint32_t *timeout)
+{
+}
+
+void slirp_pollfds_poll(GArray *pollfds, int select_error)
+{
+}
+
diff --git a/src/stubs/sysbus.c b/src/stubs/sysbus.c
new file mode 100644
index 0000000..e134965
--- /dev/null
+++ b/src/stubs/sysbus.c
@@ -0,0 +1,6 @@
+#include "hw/qdev-core.h"
+
+BusState *sysbus_get_default(void)
+{
+ return NULL;
+}
diff --git a/src/stubs/target-get-monitor-def.c b/src/stubs/target-get-monitor-def.c
new file mode 100644
index 0000000..711a9ae
--- /dev/null
+++ b/src/stubs/target-get-monitor-def.c
@@ -0,0 +1,31 @@
+/*
+ * Stub for target_get_monitor_def.
+ *
+ * Copyright IBM Corp., 2015
+ *
+ * Author: Alexey Kardashevskiy <aik@ozlabs.ru>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "stdint.h"
+
+typedef struct CPUState CPUState;
+
+int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
+
+int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval)
+{
+ return -1;
+}
diff --git a/src/stubs/target-monitor-defs.c b/src/stubs/target-monitor-defs.c
new file mode 100644
index 0000000..7d8d182
--- /dev/null
+++ b/src/stubs/target-monitor-defs.c
@@ -0,0 +1,9 @@
+#include "stddef.h"
+#include "qemu/typedefs.h"
+
+const MonitorDef *target_monitor_defs(void);
+
+const MonitorDef *target_monitor_defs(void)
+{
+ return NULL;
+}
diff --git a/src/stubs/uuid.c b/src/stubs/uuid.c
new file mode 100644
index 0000000..ffc0ed4
--- /dev/null
+++ b/src/stubs/uuid.c
@@ -0,0 +1,12 @@
+#include "qemu-common.h"
+#include "sysemu/sysemu.h"
+#include "qmp-commands.h"
+
+UuidInfo *qmp_query_uuid(Error **errp)
+{
+ UuidInfo *info = g_malloc0(sizeof(*info));
+
+ info->UUID = g_strdup(UUID_NONE);
+ return info;
+}
+
diff --git a/src/stubs/vhost.c b/src/stubs/vhost.c
new file mode 100644
index 0000000..d346b85
--- /dev/null
+++ b/src/stubs/vhost.c
@@ -0,0 +1,6 @@
+#include "hw/virtio/vhost.h"
+
+bool vhost_has_free_slot(void)
+{
+ return true;
+}
diff --git a/src/stubs/vm-stop.c b/src/stubs/vm-stop.c
new file mode 100644
index 0000000..69fd86b
--- /dev/null
+++ b/src/stubs/vm-stop.c
@@ -0,0 +1,12 @@
+#include "qemu-common.h"
+#include "sysemu/sysemu.h"
+
+void qemu_system_vmstop_request_prepare(void)
+{
+ abort();
+}
+
+void qemu_system_vmstop_request(RunState state)
+{
+ abort();
+}
diff --git a/src/stubs/vmstate.c b/src/stubs/vmstate.c
new file mode 100644
index 0000000..778bc3f
--- /dev/null
+++ b/src/stubs/vmstate.c
@@ -0,0 +1,19 @@
+#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,
+ void *base, int alias_id,
+ int required_for_version)
+{
+ return 0;
+}
+
+void vmstate_unregister(DeviceState *dev,
+ const VMStateDescription *vmsd,
+ void *opaque)
+{
+}
OpenPOWER on IntegriCloud