All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ani Sinha <anisinha@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>,
	Stefano Garzarella <sgarzare@redhat.com>,
	Ani Sinha <anisinha@redhat.com>
Cc: agraf@csgraf.de, graf@amazon.com, qemu-devel@nongnu.org
Subject: [PATCH v4 05/11] backends/igvm: add a tracepoint for qigvm_cleanup_memory
Date: Fri,  7 Aug 2026 10:55:47 +0530	[thread overview]
Message-ID: <20260807052559.50643-6-anisinha@redhat.com> (raw)
In-Reply-To: <20260807052559.50643-1-anisinha@redhat.com>

Useful for debugging memory region cleanups.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
---
 backends/igvm.c       | 1 +
 backends/trace-events | 1 +
 2 files changed, 2 insertions(+)

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"
-- 
2.42.0



  parent reply	other threads:[~2026-08-07  5:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07  5:25 [PATCH v4 00/11] Introducing guest driven VM launch update mechanism (BYOF interface) Ani Sinha
2026-08-07  5:25 ` [PATCH v4 01/11] igvm: store IgvmCfg pointer in QIgvm Ani Sinha
2026-08-07  5:25 ` [PATCH v4 02/11] igvm: track memory regions Ani Sinha
2026-08-07  5:25 ` [PATCH v4 03/11] igvm: cleanup " Ani Sinha
2026-08-07  5:25 ` [PATCH v4 04/11] system/memory: add a tracepoint for memory_region_finalize Ani Sinha
2026-08-07 12:59   ` Peter Xu
2026-08-07  5:25 ` Ani Sinha [this message]
2026-08-07  5:25 ` [PATCH v4 06/11] hw/misc/vmlaunchupdate: add api header Ani Sinha
2026-08-07  5:25 ` [PATCH v4 07/11] hw/misc/vmlaunchupdate: Introduce hypervisor fw-cfg interface support Ani Sinha
2026-08-07  5:25 ` [PATCH v4 08/11] docs/spec: Add a specification document for vm-launch-update device Ani Sinha
2026-08-07  5:25 ` [PATCH v4 09/11] tests/qtest: Add small igvm files for testing purpose Ani Sinha
2026-08-07  5:25 ` [PATCH v4 10/11] Add functional and unit tests for the vm-launch-update device Ani Sinha
2026-08-07  5:25 ` [PATCH v4 11/11] Update MAINTAINERS Ani Sinha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260807052559.50643-6-anisinha@redhat.com \
    --to=anisinha@redhat.com \
    --cc=agraf@csgraf.de \
    --cc=graf@amazon.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sgarzare@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.