HMP: support specifying dump format for dump-guest-memory
commit1b7a0f758bb3e49c8468fd2af75ebb215b26e6f4
authorQiao Nuohan <qiaonuohan@cn.fujitsu.com>
Thu, 17 Apr 2014 08:15:07 +0000 (17 16:15 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 25 Apr 2014 15:18:33 +0000 (25 11:18 -0400)
treef96d2007c6270575c7c254d5ebccd588888148ec
parentc20499d9854e5d04710f17d577df65ed7c7aacf1
HMP: support specifying dump format for dump-guest-memory

Dumping guest memory is available to specify the dump format now. This patch
adds options '-z|-l|-s' to HMP command dump-guest-memory to specify dumping in
kdump-compression format, with zlib/lzo/snappy compression. And without these
options ELF format will be used.

The discussion about this feature is here:

http://lists.nongnu.org/archive/html/qemu-devel/2014-03/msg04235.html

Signed-off-by: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
Suggested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> (on s390x/kvm)
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hmp-commands.hx
hmp.c