[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] dump: add 32-bit guest Windows support
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 0/2] dump: add 32-bit guest Windows support |
Date: |
Thu, 30 Dec 2021 00:44:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
Hi Viktor,
On 12/29/21 18:52, Viktor Prutyanov wrote:
> 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.
>
> Viktor Prutyanov (2):
> include/qemu: add 32-bit Windows dump structures and definitions
> dump/win_dump: add 32-bit guest Windows support for dump-guest-memory
Looking at your series, the patches are doing a bit too much.
Suggestion to ease review:
- Rename WinContext -> WinContext64 (+ add union) in a preliminary patch
- Rename WinDumpHeader -> WinDumpHeader64 in another patch
- Add *WIN_DUMP_FIELD* macros only using the 64-bit
- Add 32-bit structures
- Add 32-bit code
(better name 'bool x64', maybe 'is_64bit' or 'guest64'?)
Otherwise LGTM.
Regards,
Phil.