mbox series

[v2,0/4] dump: add 32-bit guest Windows support

Message ID 20220113005248.172522-1-viktor.prutyanov@phystech.edu (mailing list archive)
Headers show
Series dump: add 32-bit guest Windows support | expand

Message

Viktor Prutyanov Jan. 13, 2022, 12:52 a.m. UTC
Since 32-bit versions of Windows still exist, there is a need to take
live and crash dumps of such guests along with 64-bit guests. So, add
an ability for 'dump-guest-memory -w' to take dumps from 32-bit guest.
When running the command QEMU consumes 32-bit Complete Memory Dump
header passed by guest driver through vmcoreinfo device as it was
previously done for 64-bit headers. 32-bit vmcoreinfo guest driver in
upstream virtio-win can fill such a header.

Changes in v2:
    - no change in logic, just split patches
    - first introduce WIN_DUMP_* macros for x64 in a separate patch
    - rename WinContext to WinContext64 in a separate patch

Viktor Prutyanov (4):
  include/qemu: rename Windows context definitions to expose bitness
  dump/win_dump: add helper macros for Windows dump header access
  include/qemu: add 32-bit Windows dump structures
  dump/win_dump: add 32-bit guest Windows support

 contrib/elf2dmp/main.c       |   6 +-
 dump/win_dump.c              | 293 ++++++++++++++++++++++-------------
 include/qemu/win_dump_defs.h | 115 +++++++++++++-
 3 files changed, 299 insertions(+), 115 deletions(-)