Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/7] debug: add PR_SET_VMA_ANON_NAME support
@ 2026-11-09 18:59 John Snow
  2026-11-09 18:59 ` [PATCH 1/7] debug/mem: add utility to name anonymous memory mappings John Snow
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: John Snow @ 2026-11-09 18:59 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Xu, Daniel P. Berrangé, Alex Bennée,
	Marcelo Tosatti, David Gibson, Alistair Francis, Stefan Weil,
	Marc-André Lureau, Michael S. Tsirkin, Fabiano Rosas,
	Philippe Mathieu-Daudé, Pierrick Bouvier, Paolo Bonzini, kvm,
	Richard Henderson, Dmitry Osipenko, Akihiko Odaki, John Snow

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.

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            | 94 ++++++++++++++++++++++++++++++++++++++
 util/oslib-posix.c         |  7 ++-
 util/oslib-win32.c         |  2 +-
 util/qemu-thread-posix.c   | 34 ++++++++++++++
 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

-- 
2.56.0



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-10 15:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 18:59 [PATCH 0/7] debug: add PR_SET_VMA_ANON_NAME support John Snow
2026-11-09 18:59 ` [PATCH 1/7] debug/mem: add utility to name anonymous memory mappings John Snow
2026-11-09 19:29   ` Daniel P. Berrangé
2026-11-10 15:04     ` John Snow
2026-11-09 18:59 ` [PATCH 2/7] debug/mem: add tracing to qemu_vname_vma() John Snow
2026-11-09 19:30   ` Daniel P. Berrangé
2026-11-09 18:59 ` [PATCH 3/7] debug/mem: name <reserved> regions in mmap-alloc John Snow
2026-11-09 19:31   ` Daniel P. Berrangé
2026-11-09 18:59 ` [PATCH 4/7] debug/mem: name pthreads John Snow
2026-11-09 18:59 ` [PATCH 5/7] debug/mem: name coroutine stacks John Snow
2026-11-09 19:34   ` Daniel P. Berrangé
2026-11-09 18:59 ` [PATCH 6/7] debug/mem: name qemu_anon_ram_alloc/qemu_ram_mmap pages John Snow
2026-11-09 19:35   ` Daniel P. Berrangé
2026-11-09 18:59 ` [PATCH 7/7] debug/mem: HACK add qemu_name_buffer John Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox