mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
64cfba6a47
commit
d12f57ec66
2 changed files with 238 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue