diff options
author | qiaonuohan <qiaonuohan@cn.fujitsu.com> | 2014-02-18 14:11:35 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-02-28 11:52:03 -0500 |
commit | d12f57ec6640d36e380367a0ab6ab9f3f29b6d51 (patch) | |
tree | 89f1dc00d47d0402e36dd2e301dac8d644e41f18 /include/sysemu/dump.h | |
parent | 64cfba6a47411092c941c8d17256fb5673cc8cbf (diff) |
dump: add API to write dump pages
functions are used to write page to vmcore. vmcore is written page by page.
page desc is used to store the information of a page, including a page's size,
offset, compression format, etc.
Signed-off-by: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/sysemu/dump.h')
-rw-r--r-- | include/sysemu/dump.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index 92a95e4b92..efab7a32f3 100644 --- a/include/sysemu/dump.h +++ b/include/sysemu/dump.h @@ -151,6 +151,13 @@ typedef struct DataCache { off_t offset; /* offset of the file */ } DataCache; +typedef struct QEMU_PACKED PageDescriptor { + uint64_t offset; /* the offset of the page data*/ + uint32_t size; /* the size of this dump page */ + uint32_t flags; /* flags */ + uint64_t page_flags; /* page flags */ +} PageDescriptor; + struct GuestPhysBlockList; /* memory_mapping.h */ int cpu_get_dump_info(ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks); |