diff options
| author | qiaonuohan | 2014-02-18 07:11:33 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-02-28 17:52:03 +0100 |
| commit | d0686c7291fe8f0210e7a666f80892fa71395510 (patch) | |
| tree | 221b078f6078a989cb0864f356b143d3cb1ceace /include | |
| parent | dump: add API to write dump header (diff) | |
| download | qemu-d0686c7291fe8f0210e7a666f80892fa71395510.tar.gz qemu-d0686c7291fe8f0210e7a666f80892fa71395510.tar.xz qemu-d0686c7291fe8f0210e7a666f80892fa71395510.zip | |
dump: add API to write dump_bitmap
functions are used to write 1st and 2nd dump_bitmap of kdump-compressed format,
which is used to indicate whether the corresponded page is existed in vmcore.
1st and 2nd dump_bitmap are same, because dump level is specified to 1 here.
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')
| -rw-r--r-- | include/sysemu/dump.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index dfee23873f..6d4d0bcc3c 100644 --- a/include/sysemu/dump.h +++ b/include/sysemu/dump.h @@ -39,6 +39,8 @@ #define PHYS_BASE (0) #define DUMP_LEVEL (1) #define DISKDUMP_HEADER_BLOCKS (1) +#define BUFSIZE_BITMAP (TARGET_PAGE_SIZE) +#define PFN_BUFBITMAP (CHAR_BIT * BUFSIZE_BITMAP) typedef struct ArchDumpInfo { int d_machine; /* Architecture */ |
