diff options
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/Makefile.objs | 4 | ||||
-rw-r--r-- | stubs/clock-warp.c | 2 | ||||
-rw-r--r-- | stubs/gdbstub.c | 4 | ||||
-rw-r--r-- | stubs/kvm.c | 7 | ||||
-rw-r--r-- | stubs/qtest.c | 14 | ||||
-rw-r--r-- | stubs/runstate-check.c | 6 | ||||
-rw-r--r-- | stubs/slirp.c | 6 | ||||
-rw-r--r-- | stubs/uuid.c | 12 |
8 files changed, 48 insertions, 7 deletions
diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index f306cbada..5ed1d38d7 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -18,11 +18,15 @@ stub-obj-y += mon-print-filename.o stub-obj-y += mon-protocol-event.o stub-obj-y += mon-set-error.o stub-obj-y += pci-drive-hot-add.o +stub-obj-y += qtest.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 diff --git a/stubs/clock-warp.c b/stubs/clock-warp.c index b64c462e7..5565118d1 100644 --- a/stubs/clock-warp.c +++ b/stubs/clock-warp.c @@ -1,7 +1,7 @@ #include "qemu-common.h" #include "qemu/timer.h" -void qemu_clock_warp(QEMUClock *clock) +void qemu_clock_warp(QEMUClockType type) { } diff --git a/stubs/gdbstub.c b/stubs/gdbstub.c index c1dbfe7fb..f6a4553a3 100644 --- a/stubs/gdbstub.c +++ b/stubs/gdbstub.c @@ -1,4 +1,6 @@ -#include "qemu-common.h" +#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/stubs/kvm.c b/stubs/kvm.c new file mode 100644 index 000000000..e7c60b6e0 --- /dev/null +++ b/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/stubs/qtest.c b/stubs/qtest.c new file mode 100644 index 000000000..e671ed8e8 --- /dev/null +++ b/stubs/qtest.c @@ -0,0 +1,14 @@ +/* + * 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 "qemu-common.h" + +/* Needed for qtest_allowed() */ +bool qtest_allowed; diff --git a/stubs/runstate-check.c b/stubs/runstate-check.c new file mode 100644 index 000000000..bd2e3757a --- /dev/null +++ b/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/stubs/slirp.c b/stubs/slirp.c index f1fc833f7..bd0ac7f27 100644 --- a/stubs/slirp.c +++ b/stubs/slirp.c @@ -1,11 +1,7 @@ #include "qemu-common.h" #include "slirp/slirp.h" -void slirp_update_timeout(uint32_t *timeout) -{ -} - -void slirp_pollfds_fill(GArray *pollfds) +void slirp_pollfds_fill(GArray *pollfds, uint32_t *timeout) { } diff --git a/stubs/uuid.c b/stubs/uuid.c new file mode 100644 index 000000000..ffc0ed40a --- /dev/null +++ b/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; +} + |