From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAM3P-0006My-Ic for qemu-devel@nongnu.org; Thu, 24 Jul 2014 12:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAM3I-0002Oc-0T for qemu-devel@nongnu.org; Thu, 24 Jul 2014 12:39:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAM3H-0002OR-Pi for qemu-devel@nongnu.org; Thu, 24 Jul 2014 12:39:31 -0400 From: Stefan Hajnoczi Date: Thu, 24 Jul 2014 17:39:23 +0100 Message-Id: <1406219965-13214-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1406219965-13214-1-git-send-email-stefanha@redhat.com> References: <1406219965-13214-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] libqemustub: add qemu_system_shutdown_request() and no_shutdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andreas Faerber , Anthony Liguori These sysemu functions will be needed by qemu-char.c, which is linked into tests/vhost-user-test without system emulation functionality. Signed-off-by: Stefan Hajnoczi --- stubs/Makefile.objs | 1 + stubs/shutdown.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 stubs/shutdown.c diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 528e161..f17d517 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -39,3 +39,4 @@ 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 += shutdown.o diff --git a/stubs/shutdown.c b/stubs/shutdown.c new file mode 100644 index 0000000..c1aee7e --- /dev/null +++ b/stubs/shutdown.c @@ -0,0 +1,7 @@ +#include "sysemu/sysemu.h" + +int no_shutdown; + +void qemu_system_shutdown_request(void) +{ +} -- 1.9.3