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>
This commit is contained in:
parent
cb415fd61e
commit
8384b73c46
@ -154,15 +154,8 @@ typedef struct DumpState {
|
|||||||
GuestPhysBlockList guest_phys_blocks;
|
GuestPhysBlockList guest_phys_blocks;
|
||||||
ArchDumpInfo dump_info;
|
ArchDumpInfo dump_info;
|
||||||
MemoryMappingList list;
|
MemoryMappingList list;
|
||||||
uint32_t phdr_num;
|
|
||||||
uint32_t shdr_num;
|
|
||||||
bool resume;
|
bool resume;
|
||||||
bool detached;
|
bool detached;
|
||||||
ssize_t note_size;
|
|
||||||
hwaddr shdr_offset;
|
|
||||||
hwaddr phdr_offset;
|
|
||||||
hwaddr section_offset;
|
|
||||||
hwaddr note_offset;
|
|
||||||
hwaddr memory_offset;
|
hwaddr memory_offset;
|
||||||
int fd;
|
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_begin; /* Start address of partial guest memory area */
|
||||||
int64_t filter_area_length; /* Length 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 */
|
void *elf_section_hdrs; /* Pointer to section header buffer */
|
||||||
|
|
||||||
uint8_t *note_buf; /* buffer for notes */
|
uint8_t *note_buf; /* buffer for notes */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user