Common dump code may call vmcoreinfo_get() which is not available on all targets.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- stubs/vmcoreinfo.c | 9 +++++++++ stubs/Makefile.objs | 1 + 2 files changed, 10 insertions(+) create mode 100644 stubs/vmcoreinfo.c diff --git a/stubs/vmcoreinfo.c b/stubs/vmcoreinfo.c new file mode 100644 index 0000000000..a994153832 --- /dev/null +++ b/stubs/vmcoreinfo.c @@ -0,0 +1,9 @@ +#include "qemu/osdep.h" + +#include "hw/acpi/vmcoreinfo.h" + +bool vmcoreinfo_get(VMCoreInfoState *vis, uint64_t *paddr, uint32_t *size, + Error **errp) +{ + return false; +} diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index f5b47bfd74..3bedc73252 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -36,6 +36,7 @@ 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 += pc_madt_cpu_entry.o +stub-obj-y += vmcoreinfo.o stub-obj-y += vmgenid.o stub-obj-y += xen-common.o stub-obj-y += xen-hvm.o -- 2.13.1.395.gf7b71de06