summary refs log tree commit diff stats
path: root/include/sysemu/dump-arch.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2022-10-17 11:32:10 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-10-24 22:30:10 +0400
commit9b72224f44612ddd5b434a1bccf79346946d11da (patch)
treefa41daa7c83b85a4fb7cb4d77de35215c2c181a1 /include/sysemu/dump-arch.h
parent13fd417ddc81a1685c6a8f4e1c80bbfe7150f164 (diff)
downloadfocaccia-qemu-9b72224f44612ddd5b434a1bccf79346946d11da.tar.gz
focaccia-qemu-9b72224f44612ddd5b434a1bccf79346946d11da.zip
dump: Add architecture section and section string table support
Add hooks which architectures can use to add arbitrary data to custom
sections.

Also add a section name string table in order to identify section
contents

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221017113210.41674-1-frankja@linux.ibm.com>
Diffstat (limited to 'include/sysemu/dump-arch.h')
-rw-r--r--include/sysemu/dump-arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/dump-arch.h b/include/sysemu/dump-arch.h
index e25b02e990..59bbc9be38 100644
--- a/include/sysemu/dump-arch.h
+++ b/include/sysemu/dump-arch.h
@@ -21,6 +21,9 @@ typedef struct ArchDumpInfo {
     uint32_t page_size;      /* The target's page size. If it's variable and
                               * unknown, then this should be the maximum. */
     uint64_t phys_base;      /* The target's physmem base. */
+    void (*arch_sections_add_fn)(DumpState *s);
+    uint64_t (*arch_sections_write_hdr_fn)(DumpState *s, uint8_t *buff);
+    int (*arch_sections_write_fn)(DumpState *s, uint8_t *buff);
 } ArchDumpInfo;
 
 struct GuestPhysBlockList; /* memory_mapping.h */