Received: from eggs.gnu.org ([208.118.235.92]:58494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdIMe-00063a-7S for qemu-devel@nongnu.org; Fri, 17 May 2013 06:58:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdIMa-0004PH-Eh for qemu-devel@nongnu.org; Fri, 17 May 2013 06:58:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57169 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdIMa-0004Na-4r for qemu-devel@nongnu.org; Fri, 17 May 2013 06:58:16 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 17 May 2013 12:58:05 +0200 Message-Id: <1368788285-29814-1-git-send-email-afaerber@suse.de> In-Reply-To: <1366731014-48790-2-git-send-email-jfrei@linux.vnet.ibm.com> References: <1366731014-48790-2-git-send-email-jfrei@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC qom-cpu] dump: Unconditionally compile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, tumanova@linux.vnet.ibm.com, agraf@suse.de, lcapitulino@redhat.com, rabin@rab.in, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, pbonzini@redhat.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= qmp_dump_guest_memory() calls dump_init() and returns an Error when cpu_get_dump_info() returns an error, as done by the stub. So there is no need to have a stub for qmp_dump_guest_memory(). Enable the documentation of the always-present dump-guest-memory command. That way we can drop CONFIG_HAVE_CORE_DUMP. Signed-off-by: Andreas F=C3=A4rber --- Based on Ekaterina's last patch and my stub cleanup. Next step will then be to clean up memory_mapping-stub.c. Makefile.target | 2 +- configure | 4 ---- hmp-commands.hx | 2 -- stubs/dump.c | 8 -------- 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Makefile.target b/Makefile.target index 84ec344..5b02200 100644 --- a/Makefile.target +++ b/Makefile.target @@ -111,7 +111,7 @@ obj-$(CONFIG_FDT) +=3D device_tree.o obj-$(CONFIG_KVM) +=3D kvm-all.o obj-y +=3D memory.o savevm.o cputlb.o obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) +=3D memory_mapping.o -obj-$(CONFIG_HAVE_CORE_DUMP) +=3D dump.o memory_mapping_common.o +obj-y +=3D dump.o memory_mapping_common.o obj-$(CONFIG_NO_GET_MEMORY_MAPPING) +=3D memory_mapping-stub.o LIBS+=3D$(libs_softmmu) =20 diff --git a/configure b/configure index 5ae7e4a..8f987e8 100755 --- a/configure +++ b/configure @@ -4349,10 +4349,6 @@ if test "$target_bigendian" =3D "yes" ; then fi if test "$target_softmmu" =3D "yes" ; then echo "CONFIG_SOFTMMU=3Dy" >> $config_target_mak - case "$target_arch2" in - i386|x86_64) - echo "CONFIG_HAVE_CORE_DUMP=3Dy" >> $config_target_mak - esac fi if test "$target_user_only" =3D "yes" ; then echo "CONFIG_USER_ONLY=3Dy" >> $config_target_mak diff --git a/hmp-commands.hx b/hmp-commands.hx index 9cea415..074dbe1 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -989,7 +989,6 @@ server will ask the spice/vnc client to automatically= reconnect using the new parameters (if specified) once the vm migration finished successfull= y. ETEXI =20 -#if defined(CONFIG_HAVE_CORE_DUMP) { .name =3D "dump-guest-memory", .args_type =3D "paging:-p,filename:F,begin:i?,length:i?", @@ -1013,7 +1012,6 @@ gdb. length: the memory size, in bytes. It's optional, and should be spec= ified with begin together. ETEXI -#endif =20 { .name =3D "snapshot_blkdev", diff --git a/stubs/dump.c b/stubs/dump.c index b3f42cb..43c9a3f 100644 --- a/stubs/dump.c +++ b/stubs/dump.c @@ -16,14 +16,6 @@ #include "qapi/qmp/qerror.h" #include "qmp-commands.h" =20 -/* 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 lengt= h, - Error **errp) -{ - error_set(errp, QERR_UNSUPPORTED); -} - int cpu_get_dump_info(ArchDumpInfo *info) { return -1; --=20 1.8.1.4