On Thu, Dec 11, 2025 at 11:54:18AM +0100, Gerd Hoffmann wrote:
Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Ani Sinha <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> --- backends/igvm.c | 5 +++++ backends/trace-events | 2 ++ 2 files changed, 7 insertions(+)diff --git a/backends/igvm.c b/backends/igvm.c index a01e01a12a60..4cf7b572347c 100644 --- a/backends/igvm.c +++ b/backends/igvm.c @@ -20,6 +20,8 @@ #include "system/address-spaces.h" #include "hw/core/cpu.h" +#include "trace.h" + #include <igvm/igvm.h> #include <igvm/igvm_defs.h> @@ -886,6 +888,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; } @@ -903,6 +907,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.52.0
Reviewed-by: Luigi Leonardi <[email protected]>
