Skip to contentSkip to conversation

hw/misc: fix trace-events

PATCH In review [email protected] 4 participants 7 messages Aug 25 – Aug 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/misc: fix trace-events

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

Fixes 8041d1730871 ("tests/qtest: add test for K230 gsdma")
---
 hw/misc/trace-events | 6 ++++++
 1 file changed, 6 insertions(+)
hw/misc/trace-events +6 -0
index 16db4ba0cc17..0b8be3d0f226 100644
@@ -446,3 +446,9 @@ iommu_testdev_dma_armed(bool armed) "armed=%d"
 # k230_decomp_gzip.c
 k230_decomp_gzip_read(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP read: [0x%"PRIx64"] size %u -> 0x%"PRIx64
 k230_decomp_gzip_write(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP write: [0x%"PRIx64"] size %u <- 0x%"PRIx64
+
+# vmlaunchupdate.c
+launch_update_write(void) ""
+vmlaunch_reset_enter(void) ""
+vm_launchupdate_finalize(void) ""
+restore_host_x86_igvm(void) ""
Signature · 1 line
2.55.0.543.g5ebe2ebe4ea8
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Tue, Aug 25, 2026 at 11:41:14AM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

More importantly CI failed to report that build failure. IIUC, this is likely due to missing libigvm library. We have this available in Fedora at least, not sure about other distros, but we can add igvm to libvirt-ci and then to QEMU's deps list for CI.

Quoted 6 lines
Fixes 8041d1730871 ("tests/qtest: add test for K230 gsdma")
---
 hw/misc/trace-events | 6 ++++++
 1 file changed, 6 insertions(+)
Quoted 19 lines
hw/misc/trace-events +6 -0
index 16db4ba0cc17..0b8be3d0f226 100644
@@ -446,3 +446,9 @@ iommu_testdev_dma_armed(bool armed) "armed=%d"
 # k230_decomp_gzip.c
 k230_decomp_gzip_read(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP read: [0x%"PRIx64"] size %u -> 0x%"PRIx64
 k230_decomp_gzip_write(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP write: [0x%"PRIx64"] size %u <- 0x%"PRIx64
+
+# vmlaunchupdate.c
+launch_update_write(void) ""
+vmlaunch_reset_enter(void) ""
+vm_launchupdate_finalize(void) ""
+restore_host_x86_igvm(void) ""
Signature · 1 line
2.55.0.543.g5ebe2ebe4ea8

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
#2 lore raw
Quoted 10 lines · Daniel P. Berrangé
Quoted 4 lines · On Tue, Aug 25, 2026 at 11:41:14AM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

More importantly CI failed to report that build failure. IIUC, this is likely due to missing libigvm library. We have this available in Fedora at least, not sure about other distros, but we can add igvm to libvirt-ci and then to QEMU's deps list for CI.

Proposed the mapping addition which will let us build-test it:

https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/583

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
#3 lore raw

Hi

Quoted 8 lines · Daniel P. Berrangé
Quoted 6 lines · Daniel P. Berrangé
Quoted 4 lines · On Tue, Aug 25, 2026 at 11:41:14AM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

Quoted 8 lines
Quoted 4 lines

More importantly CI failed to report that build failure. IIUC, this is likely due to missing libigvm library. We have this available in Fedora at least, not sure about other distros, but we can add igvm to libvirt-ci and then to QEMU's deps list for CI.

Proposed the mapping addition which will let us build-test it:

https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/583

thanks!

Reviewed-by on v1 1/1
#4 lore raw
In reply to [email protected]
Quoted 29 lines · On Tue, Aug 25, 2026 at 11:41:14AM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

Fixes 8041d1730871 ("tests/qtest: add test for K230 gsdma")

---
hw/misc/trace-events | 6 ++++++

1 file changed, 6 insertions(+)
hw/misc/trace-events +0 -0
index 16db4ba0cc17..0b8be3d0f226 100644
@@ -446,3 +446,9 @@ iommu_testdev_dma_armed(bool armed) "armed=%d"
 # k230_decomp_gzip.c

k230_decomp_gzip_read(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP read: [0x%"PRIx64"] size %u -> 0x%"PRIx64 k230_decomp_gzip_write(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP write: [0x%"PRIx64"] size %u <- 0x%"PRIx64

hw/misc/trace-events +6 -0
+
+# vmlaunchupdate.c
+launch_update_write(void) ""
+vmlaunch_reset_enter(void) ""
+vm_launchupdate_finalize(void) ""
+restore_host_x86_igvm(void) ""
Signature · 1 line
2.55.0.543.g5ebe2ebe4ea8

Thanks!

Reviewed-by on v1 1/1
#5 lore raw
In reply to [email protected]
Quoted 10 lines · On 25/8/26 09:41, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

Fixes 8041d1730871 ("tests/qtest: add test for K230 gsdma")
---
  hw/misc/trace-events | 6 ++++++
  1 file changed, 6 insertions(+)
#6 lore raw
In reply to [email protected]
Quoted 16 lines · On 25/8/26 09:41, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The commit 8041d1730871 accidentally removed the vmlaunchupdate.c trace events.

Fixes 8041d1730871 ("tests/qtest: add test for K230 gsdma")
---
  hw/misc/trace-events | 6 ++++++
  1 file changed, 6 insertions(+)
hw/misc/trace-events +0 -0
index 16db4ba0cc17..0b8be3d0f226 100644

hw/misc/trace-events iommu_testdev_dma_armed(bool armed) "armed=%d" · line 454

Quoted 9 lines
hw/misc/trace-events +6 -0
@@ -446,3 +446,9 @@ iommu_testdev_dma_armed(bool armed) "armed=%d"
  # k230_decomp_gzip.c
  k230_decomp_gzip_read(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP read: [0x%"PRIx64"] size %u -> 0x%"PRIx64
  k230_decomp_gzip_write(uint64_t offset, unsigned int size, uint64_t value) "K230 DECOMP GZIP write: [0x%"PRIx64"] size %u <- 0x%"PRIx64
+
+# vmlaunchupdate.c
+launch_update_write(void) ""
+vmlaunch_reset_enter(void) ""
+vm_launchupdate_finalize(void) ""
+restore_host_x86_igvm(void) ""

Applying: hw/misc: fix trace-events
Patch failed at 0001 hw/misc: fix trace-events
error: patch failed: hw/misc/trace-events:446
error: hw/misc/trace-events: patch does not apply

already committed as 8fda982a7c083251635a2ce41dcc068ed0e5c124.