thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
bf143f
From 7e8d6290099b33f88621b45e62652a97704c9573 Mon Sep 17 00:00:00 2001
bf143f
From: Janosch Frank <frankja@linux.ibm.com>
bf143f
Date: Mon, 17 Oct 2022 08:38:15 +0000
bf143f
Subject: [PATCH 34/42] dump: Reorder struct DumpState
bf143f
MIME-Version: 1.0
bf143f
Content-Type: text/plain; charset=UTF-8
bf143f
Content-Transfer-Encoding: 8bit
bf143f
bf143f
RH-Author: Cédric Le Goater <clg@redhat.com>
bf143f
RH-MergeRequest: 226: s390: Enhanced Interpretation for PCI Functions and Secure Execution guest dump
bf143f
RH-Bugzilla: 1664378 2043909
bf143f
RH-Acked-by: Thomas Huth <thuth@redhat.com>
bf143f
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
bf143f
RH-Acked-by: Jon Maloy <jmaloy@redhat.com>
bf143f
RH-Commit: [34/41] 8d44e5e8c86ea5b33644eba141046cd657d0071e
bf143f
bf143f
Let's move ELF related members into one block and guest memory related
bf143f
ones into another to improve readability.
bf143f
bf143f
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
bf143f
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bf143f
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
bf143f
Message-Id: <20221017083822.43118-4-frankja@linux.ibm.com>
bf143f
(cherry picked from commit 8384b73c46fd474847d7e74d121318e344edc3c4)
bf143f
Signed-off-by: Cédric Le Goater <clg@redhat.com>
bf143f
---
bf143f
 include/sysemu/dump.h | 16 +++++++++-------
bf143f
 1 file changed, 9 insertions(+), 7 deletions(-)
bf143f
bf143f
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
bf143f
index 9995f65dc8..9ed811b313 100644
bf143f
--- a/include/sysemu/dump.h
bf143f
+++ b/include/sysemu/dump.h
bf143f
@@ -154,15 +154,8 @@ typedef struct DumpState {
bf143f
     GuestPhysBlockList guest_phys_blocks;
bf143f
     ArchDumpInfo dump_info;
bf143f
     MemoryMappingList list;
bf143f
-    uint32_t phdr_num;
bf143f
-    uint32_t shdr_num;
bf143f
     bool resume;
bf143f
     bool detached;
bf143f
-    ssize_t note_size;
bf143f
-    hwaddr shdr_offset;
bf143f
-    hwaddr phdr_offset;
bf143f
-    hwaddr section_offset;
bf143f
-    hwaddr note_offset;
bf143f
     hwaddr memory_offset;
bf143f
     int fd;
bf143f
 
bf143f
@@ -177,6 +170,15 @@ typedef struct DumpState {
bf143f
     int64_t filter_area_begin;  /* Start address of partial guest memory area */
bf143f
     int64_t filter_area_length; /* Length of partial guest memory area */
bf143f
 
bf143f
+    /* Elf dump related data */
bf143f
+    uint32_t phdr_num;
bf143f
+    uint32_t shdr_num;
bf143f
+    ssize_t note_size;
bf143f
+    hwaddr shdr_offset;
bf143f
+    hwaddr phdr_offset;
bf143f
+    hwaddr section_offset;
bf143f
+    hwaddr note_offset;
bf143f
+
bf143f
     void *elf_section_hdrs;     /* Pointer to section header buffer */
bf143f
 
bf143f
     uint8_t *note_buf;          /* buffer for notes */
bf143f
-- 
bf143f
2.37.3
bf143f