mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
dump-guest-memory: introduce dump_process() helper function.
No functional change. Cleanup only. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-Id: <1455772616-8668-6-git-send-email-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
65d64f3623
commit
ca1fc8c97e
2 changed files with 24 additions and 10 deletions
|
@ -178,6 +178,9 @@ typedef struct DumpState {
|
|||
size_t num_dumpable; /* number of page that can be dumped */
|
||||
uint32_t flag_compress; /* indicate the compression format */
|
||||
DumpStatus status; /* current dump status */
|
||||
|
||||
bool has_format; /* whether format is provided */
|
||||
DumpGuestMemoryFormat format; /* valid only if has_format == true */
|
||||
} DumpState;
|
||||
|
||||
uint16_t cpu_to_dump16(DumpState *s, uint16_t val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue