[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 09/17] dump: Reorder struct DumpState
From: |
Janis Schoetterl-Glausch |
Subject: |
Re: [PATCH v4 09/17] dump: Reorder struct DumpState |
Date: |
Fri, 29 Jul 2022 19:21:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
On 7/26/22 11:22, Janosch Frank wrote:
> 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>
> ---
> include/sysemu/dump.h | 16 +++++++++-------
> 1 file changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
> index 686555f908..3937afe0f9 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;
>
> @@ -171,6 +164,15 @@ typedef struct DumpState {
> int64_t begin; /* Start address of the chunk we want to dump
> */
> int64_t length; /* Length of the dump we want to dump */
>
> + /* Elf dump related data */
> + uint32_t phdr_num;
> + uint32_t shdr_num;
> + uint32_t sh_info;
Why is this ^ here?
> + ssize_t note_size;
> + hwaddr shdr_offset;
> + hwaddr phdr_offset;
> + hwaddr note_offset;
> +
> void *elf_header;
> void *elf_section_hdrs;
> uint64_t elf_section_data_size;
- Re: [PATCH v4 07/17] dump: Allocate header, (continued)
- [PATCH v4 04/17] dump: Rework get_start_block, Janosch Frank, 2022/07/26
- [PATCH v4 08/17] dump: Split write of section headers and data and add a prepare step, Janosch Frank, 2022/07/26
- [PATCH v4 09/17] dump: Reorder struct DumpState, Janosch Frank, 2022/07/26
- [PATCH v4 10/17] dump: Swap segment and section header locations, Janosch Frank, 2022/07/26
- [PATCH v4 11/17] dump/dump: Add section string table support, Janosch Frank, 2022/07/26
Re: [PATCH v4 11/17] dump/dump: Add section string table support, Janis Schoetterl-Glausch, 2022/07/29