aboutsummaryrefslogtreecommitdiff
path: root/stubs/dump.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-05-17 10:41:20 +0200
committerAndreas Färber <afaerber@suse.de>2013-06-10 23:33:18 +0200
commit88f62c2b1deb466749e340a8a241975c509bd9b6 (patch)
tree020834ae7596647924045c7f18ffd49039da7c8b /stubs/dump.c
parentbd5c51ee6c4f1c79cae5ad2516d711a27b4ea8ec (diff)
dump: Move stubs into libqemustub.a
This allows us to drop CONFIG_NO_CORE_DUMP with its indirect dependency on CONFIG_HAVE_CORE_DUMP. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'stubs/dump.c')
-rw-r--r--stubs/dump.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/stubs/dump.c b/stubs/dump.c
new file mode 100644
index 0000000000..b3f42cb2f1
--- /dev/null
+++ b/stubs/dump.c
@@ -0,0 +1,36 @@
+/*
+ * 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.h"
+#include "qapi/qmp/qerror.h"
+#include "qmp-commands.h"
+
+/* we need this function in hmp.c */
+void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin,
+ int64_t begin, bool has_length, int64_t length,
+ Error **errp)
+{
+ error_set(errp, QERR_UNSUPPORTED);
+}
+
+int cpu_get_dump_info(ArchDumpInfo *info)
+{
+ return -1;
+}
+
+ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+{
+ return -1;
+}
+