summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorAni Sinha <anisinha@redhat.com>2026-08-17 19:50:00 +0530
committerGerd Hoffmann <kraxel@redhat.com>2026-08-20 16:40:33 +0200
commit68e54556e731432dd5ceff3daf5889e2096d42ae (patch)
tree87f1a6c5330882e3cdb22551fe6f64b7c242fc07 /backends
parent0102503dc58d5f34e49f4d9cb7020271aa90b149 (diff)
downloadqemu-68e54556e731432dd5ceff3daf5889e2096d42ae.tar.gz
qemu-68e54556e731432dd5ceff3daf5889e2096d42ae.zip
backends/igvm: add a tracepoint for qigvm_cleanup_memory
Useful for debugging memory region cleanups. Signed-off-by: Ani Sinha <anisinha@redhat.com> Message-ID: <20260817142010.80693-6-anisinha@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r--backends/igvm.c1
-rw-r--r--backends/trace-events1
2 files changed, 2 insertions, 0 deletions
diff --git a/backends/igvm.c b/backends/igvm.c
index 9b101c8182..7b7bdc72b7 100644
--- a/backends/igvm.c
+++ b/backends/igvm.c
@@ -1120,6 +1120,7 @@ void qigvm_cleanup_memory(IgvmCfg *cfg)
QTAILQ_FOREACH_SAFE(imr, &cfg->memory_regions, next, tmp)
{
+ trace_qigvm_cleanup_memory(imr->mr->name);
memory_region_del_subregion(get_system_memory(), imr->mr);
vmstate_unregister_ram(imr->mr, NULL);
QTAILQ_REMOVE(&cfg->memory_regions, imr, next);
diff --git a/backends/trace-events b/backends/trace-events
index 009a25b0be..9b7b9b7d68 100644
--- a/backends/trace-events
+++ b/backends/trace-events
@@ -33,3 +33,4 @@ igvm_reset_hold(int type) "type=%u"
igvm_reset_exit(int type) "type=%u"
igvm_file_loaded(const char *fn, int32_t handle) "fn=%s, handle=0x%x"
igvm_process_file(int32_t handle, bool context_only) "handle=0x%x context-only=%d"
+qigvm_cleanup_memory(const char* name) "freeing mr %s"