]> git.proxmox.com Git - mirror_qemu.git/commit
introduce a new monitor command 'dump-guest-memory' to dump guest's memory
authorWen Congyang <wency@cn.fujitsu.com>
Mon, 7 May 2012 04:10:47 +0000 (12:10 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 4 Jun 2012 16:49:34 +0000 (13:49 -0300)
commit783e9b4826b95e53e33c42db6b4bd7d89bdff147
treecf82afb895f2289e30b926b3801e925cb90cd32b
parent68f4730c714b7c30ca912d7c03e199f181739da0
introduce a new monitor command 'dump-guest-memory' to dump guest's memory

The command's usage:
   dump-guest-memory [-p] protocol [begin] [length]
The supported protocol can be file or fd:
1. file: the protocol starts with "file:", and the following string is
   the file's path.
2. fd: the protocol starts with "fd:", and the following string is the
   fd's name.

Note:
  1. If you want to use gdb to process the core, please specify -p option.
     The reason why the -p option is not default is:
       a. guest machine in a catastrophic state can have corrupted memory,
          which we cannot trust.
       b. The guest machine can be in read-mode even if paging is enabled.
          For example: the guest machine uses ACPI to sleep, and ACPI sleep
          state goes in real-mode.
  2. If you don't want to dump all guest's memory, please specify the start
     physical address and the length.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile.target
dump.c [new file with mode: 0644]
elf.h
hmp-commands.hx
hmp.c
hmp.h
memory_mapping.c
memory_mapping.h
qapi-schema.json
qmp-commands.hx