diff options
author | Marc-André Lureau | 2017-09-11 18:59:25 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2017-10-15 04:54:40 +0200 |
commit | 903ef7349699dcd932b5981b85c1f1ebe4a4bf2a (patch) | |
tree | 96271cc5745eafb7170f2f9db60f92ab9b37fd14 /include/sysemu | |
parent | hw/misc: add vmcoreinfo device (diff) | |
download | qemu-903ef7349699dcd932b5981b85c1f1ebe4a4bf2a.tar.gz qemu-903ef7349699dcd932b5981b85c1f1ebe4a4bf2a.tar.xz qemu-903ef7349699dcd932b5981b85c1f1ebe4a4bf2a.zip |
dump: add guest ELF note
Read the guest ELF PT_NOTE from guest memory when fw_cfg
etc/vmcoreinfo entry provides the location, and write it as an
additional note in the dump.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/dump.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index 2672a15f8b..df43bd0e07 100644 --- a/include/sysemu/dump.h +++ b/include/sysemu/dump.h @@ -192,6 +192,8 @@ typedef struct DumpState { * this could be used to calculate * how much work we have * finished. */ + uint8_t *guest_note; /* ELF note content */ + size_t guest_note_size; } DumpState; uint16_t cpu_to_dump16(DumpState *s, uint16_t val); |