[PATCH v2 0/5] elf2dmp: improve Win2022, Win11 and large dumps

Viktor Prutyanov posted 5 patches 7 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230915170153.10959-1-viktor@daynix.com
Maintainers: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
contrib/elf2dmp/addrspace.c |  31 +++++++-
contrib/elf2dmp/addrspace.h |   1 +
contrib/elf2dmp/main.c      | 154 ++++++++++++++++++++----------------
contrib/elf2dmp/pdb.c       |  15 +---
contrib/elf2dmp/pdb.h       |   2 +-
contrib/elf2dmp/qemu_elf.c  |  68 +++++++++++++---
contrib/elf2dmp/qemu_elf.h  |   2 +
7 files changed, 177 insertions(+), 96 deletions(-)
[PATCH v2 0/5] elf2dmp: improve Win2022, Win11 and large dumps
Posted by Viktor Prutyanov 7 months, 2 weeks ago
Windows Server 2022 and Windows 11 require more careful kernel PE image
search and handling of PDB than previous Windows versions.
Also, improve support of large ELF dump files, dumps with unaligned
memory ranges and with big number of ranges.

Viktor Prutyanov (5):
  elf2dmp: replace PE export name check with PDB name check
  elf2dmp: introduce physical block alignment
  elf2dmp: introduce merging of physical memory runs
  elf2dmp: use Linux mmap with MAP_NORESERVE when possible
  elf2dmp: rework PDB_STREAM_INDEXES::segments obtaining

 contrib/elf2dmp/addrspace.c |  31 +++++++-
 contrib/elf2dmp/addrspace.h |   1 +
 contrib/elf2dmp/main.c      | 154 ++++++++++++++++++++----------------
 contrib/elf2dmp/pdb.c       |  15 +---
 contrib/elf2dmp/pdb.h       |   2 +-
 contrib/elf2dmp/qemu_elf.c  |  68 +++++++++++++---
 contrib/elf2dmp/qemu_elf.h  |   2 +
 7 files changed, 177 insertions(+), 96 deletions(-)

-- 
2.21.0
Re: [PATCH v2 0/5] elf2dmp: improve Win2022, Win11 and large dumps
Posted by Akihiko Odaki 7 months, 2 weeks ago
On 2023/09/16 2:01, Viktor Prutyanov wrote:
> Windows Server 2022 and Windows 11 require more careful kernel PE image
> search and handling of PDB than previous Windows versions.
> Also, improve support of large ELF dump files, dumps with unaligned
> memory ranges and with big number of ranges.
> 
> Viktor Prutyanov (5):
>    elf2dmp: replace PE export name check with PDB name check
>    elf2dmp: introduce physical block alignment
>    elf2dmp: introduce merging of physical memory runs
>    elf2dmp: use Linux mmap with MAP_NORESERVE when possible
>    elf2dmp: rework PDB_STREAM_INDEXES::segments obtaining
> 
>   contrib/elf2dmp/addrspace.c |  31 +++++++-
>   contrib/elf2dmp/addrspace.h |   1 +
>   contrib/elf2dmp/main.c      | 154 ++++++++++++++++++++----------------
>   contrib/elf2dmp/pdb.c       |  15 +---
>   contrib/elf2dmp/pdb.h       |   2 +-
>   contrib/elf2dmp/qemu_elf.c  |  68 +++++++++++++---
>   contrib/elf2dmp/qemu_elf.h  |   2 +
>   7 files changed, 177 insertions(+), 96 deletions(-)
> 

For the whole series:
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Re: [PATCH v2 0/5] elf2dmp: improve Win2022, Win11 and large dumps
Posted by Peter Maydell 7 months, 2 weeks ago
On Fri, 15 Sept 2023 at 18:13, Akihiko Odaki <akihiko.odaki@daynix.com> wrote:
>
> On 2023/09/16 2:01, Viktor Prutyanov wrote:
> > Windows Server 2022 and Windows 11 require more careful kernel PE image
> > search and handling of PDB than previous Windows versions.
> > Also, improve support of large ELF dump files, dumps with unaligned
> > memory ranges and with big number of ranges.
> >
> > Viktor Prutyanov (5):
> >    elf2dmp: replace PE export name check with PDB name check
> >    elf2dmp: introduce physical block alignment
> >    elf2dmp: introduce merging of physical memory runs
> >    elf2dmp: use Linux mmap with MAP_NORESERVE when possible
> >    elf2dmp: rework PDB_STREAM_INDEXES::segments obtaining
> >
> >   contrib/elf2dmp/addrspace.c |  31 +++++++-
> >   contrib/elf2dmp/addrspace.h |   1 +
> >   contrib/elf2dmp/main.c      | 154 ++++++++++++++++++++----------------
> >   contrib/elf2dmp/pdb.c       |  15 +---
> >   contrib/elf2dmp/pdb.h       |   2 +-
> >   contrib/elf2dmp/qemu_elf.c  |  68 +++++++++++++---
> >   contrib/elf2dmp/qemu_elf.h  |   2 +
> >   7 files changed, 177 insertions(+), 96 deletions(-)
> >
>
> For the whole series:
> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>

Thanks for reviewing this. I'll take the patches via the
arm tree, unless anybody would prefer them to take a different
route upstream.

-- PMM