diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2022-10-17 08:38:15 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-10-24 22:30:10 +0400 |
commit | 8384b73c46fd474847d7e74d121318e344edc3c4 (patch) | |
tree | aa8927eea7bc568fc2eefebc54a7bc617e3a9189 | |
parent | cb415fd61e48d52f81dcf38956e3f913651cff1c (diff) | |
download | qemu-8384b73c46fd474847d7e74d121318e344edc3c4.zip qemu-8384b73c46fd474847d7e74d121318e344edc3c4.tar.gz qemu-8384b73c46fd474847d7e74d121318e344edc3c4.tar.bz2 |
dump: Reorder struct DumpState
Let's move ELF related members into one block and guest memory related
ones into another to improve readability.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221017083822.43118-4-frankja@linux.ibm.com>
-rw-r--r-- | include/sysemu/dump.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index 9995f65..9ed811b 100644 --- a/include/sysemu/dump.h +++ b/include/sysemu/dump.h @@ -154,15 +154,8 @@ typedef struct DumpState { GuestPhysBlockList guest_phys_blocks; ArchDumpInfo dump_info; MemoryMappingList list; - uint32_t phdr_num; - uint32_t shdr_num; bool resume; bool detached; - ssize_t note_size; - hwaddr shdr_offset; - hwaddr phdr_offset; - hwaddr section_offset; - hwaddr note_offset; hwaddr memory_offset; int fd; @@ -177,6 +170,15 @@ typedef struct DumpState { int64_t filter_area_begin; /* Start address of partial guest memory area */ int64_t filter_area_length; /* Length of partial guest memory area */ + /* Elf dump related data */ + uint32_t phdr_num; + uint32_t shdr_num; + ssize_t note_size; + hwaddr shdr_offset; + hwaddr phdr_offset; + hwaddr section_offset; + hwaddr note_offset; + void *elf_section_hdrs; /* Pointer to section header buffer */ uint8_t *note_buf; /* buffer for notes */ |