Skip to content

debug: add PR_SET_VMA_ANON_NAME support

John Snow kvm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 7 repliesIn review
  2. v17 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- add va_end()
- fix commit message on 1/7
- remove redundant call in 4/7
- remove RFC comment in 5/7

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7debug/mem: add utility to name anonymous memory mappingsinclude/qemu/mmap-vma.h util/meson.build util/mmap-vma.c+90 -02 replies
2/7debug/mem: add tracing to qemu_vname_vma()util/mmap-vma.c util/trace-events+8 -10 replies
3/7debug/mem: name <reserved> regions in mmap-allocutil/mmap-alloc.c+6 -10 replies
4/7debug/mem: name pthreadsmeson.build util/qemu-thread-posix.c+38 -03 replies
5/7debug/mem: name coroutine stacksutil/oslib-posix.c+3 -02 replies
6/7debug/mem: name qemu_anon_ram_alloc/qemu_ram_mmap pageshw/display/virtio-gpu-gl.c include/qemu/mmap-alloc.h include/qemu/osdep.h +6 more+23 -130 replies
7/7debug/mem: HACK add qemu_name_bufferhw/core/loader.c hw/i386/x86-common.c include/qemu/bitmap.h +4 more+46 -20 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchDaniel P. Berrangé
1/7
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] debug: add PR_SET_VMA_ANON_NAME support

Add PR_SET_VMA_ANON_NAME support to name mmap'd regions of memory. This is only supported on Linux >= 5.17, but allows QEMU to communicate names for each VMA segment to linux, where they are visible in /proc/$pid/[s]maps and utilities like pmap.

v2:
- add va_end()
- fix commit message on 1/7
- remove redundant call in 4/7
- remove RFC comment in 5/7

John Snow (7):
debug/mem: add utility to name anonymous memory mappings debug/mem: add tracing to qemu_vname_vma() debug/mem: name <reserved> regions in mmap-alloc debug/mem: name pthreads
debug/mem: name coroutine stacks
debug/mem: name qemu_anon_ram_alloc/qemu_ram_mmap pages debug/mem: HACK add qemu_name_buffer

 meson.build                |  8 ++++
 include/qemu/bitmap.h      |  6 +++
 include/qemu/mmap-alloc.h  |  3 +-
 include/qemu/mmap-vma.h    | 21 ++++++++
 include/qemu/osdep.h       |  2 +-
 hw/core/loader.c           |  3 ++
 hw/display/virtio-gpu-gl.c |  2 +-
 hw/i386/x86-common.c       |  3 ++
 migration/ram.c            |  3 +-
 system/device_tree.c       |  2 +
 system/physmem.c           | 15 ++++--
 target/i386/kvm/tdx.c      |  3 +-
 util/mmap-alloc.c          | 17 +++++--
 util/mmap-vma.c            | 98 ++++++++++++++++++++++++++++++++++++++
 util/oslib-posix.c         |  7 ++-
 util/oslib-win32.c         |  2 +-
 util/qemu-thread-posix.c   | 30 ++++++++++++
 util/meson.build           |  1 +
 util/trace-events          |  3 ++
 19 files changed, 213 insertions(+), 16 deletions(-)
 create mode 100644 include/qemu/mmap-vma.h
 create mode 100644 util/mmap-vma.c
Signature · 1 line
2.56.1