From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>,
Ani Sinha <anisinha@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Richard Henderson <richard.henderson@linaro.org>,
Stefano Garzarella <sgarzare@redhat.com>,
Luigi Leonardi <leonardi@redhat.com>,
Oliver Steffen <osteffen@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: [PATCH 3/4] igvm: add trace point for igvm file loading and processing
Date: Tue, 18 Nov 2025 13:21:31 +0100 [thread overview]
Message-ID: <20251118122133.1695767-4-kraxel@redhat.com> (raw)
In-Reply-To: <20251118122133.1695767-1-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
backends/igvm.c | 5 +++++
backends/trace-events | 2 ++
2 files changed, 7 insertions(+)
diff --git a/backends/igvm.c b/backends/igvm.c
index 05d197fdfe85..a350c890cc95 100644
--- a/backends/igvm.c
+++ b/backends/igvm.c
@@ -18,6 +18,8 @@
#include "system/address-spaces.h"
#include "hw/core/cpu.h"
+#include "trace.h"
+
#include <igvm/igvm.h>
#include <igvm/igvm_defs.h>
@@ -884,6 +886,8 @@ IgvmHandle qigvm_file_init(char *filename, Error **errp)
error_setg(errp, "Unable to parse IGVM file %s: %d", filename, igvm);
return -1;
}
+
+ trace_igvm_file_loaded(filename, igvm);
return igvm;
}
@@ -901,6 +905,7 @@ int qigvm_process_file(IgvmCfg *cfg, ConfidentialGuestSupport *cgs,
return -1;
}
ctx.file = cfg->file;
+ trace_igvm_process_file(cfg->file, onlyVpContext);
/*
* The ConfidentialGuestSupport object is optional and allows a confidential
diff --git a/backends/trace-events b/backends/trace-events
index 45ac46dc2454..7a00e9bf6c16 100644
--- a/backends/trace-events
+++ b/backends/trace-events
@@ -26,3 +26,5 @@ iommufd_backend_invalidate_cache(int iommufd, uint32_t id, uint32_t data_type, u
igvm_reset_enter(int type) "type=%u"
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"
--
2.51.1
next prev parent reply other threads:[~2025-11-18 12:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 12:21 [PATCH 0/4] igvm: rework igvm file loading + processing, fix reset Gerd Hoffmann
2025-11-18 12:21 ` [PATCH 1/4] igvm: make igvm-cfg object resetable Gerd Hoffmann
2025-11-21 12:16 ` Ani Sinha
2025-11-18 12:21 ` [PATCH 2/4] igvm: move file load to complete callback Gerd Hoffmann
2025-11-21 13:03 ` Ani Sinha
2025-11-18 12:21 ` Gerd Hoffmann [this message]
2025-11-21 13:07 ` [PATCH 3/4] igvm: add trace point for igvm file loading and processing Ani Sinha
2025-11-18 12:21 ` [PATCH 4/4] igvm: move igvm file processing to reset callbacks Gerd Hoffmann
2025-11-21 13:48 ` 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=20251118122133.1695767-4-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=anisinha@redhat.com \
--cc=eduardo@habkost.net \
--cc=leonardi@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=osteffen@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).