@samitouri / QOSamiQemu / commits / 8e35e3f851

igvm: spit out region size on error

This change makes the error message provide more details on the values that caused the error. Cosmetic, no functional change. Only useful for debugging purpose. CC: qemu-trivial@nongnu.org Signed-off-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@mailo.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

Ani Sinha committed Jun 7, 2026 at 20:11 UTC 8e35e3f85165d03dce30fa17caf75e84ef3ec387
1 file changed +2 -2
backends/igvm.c
+2 -2
@@ -198,8 +198,8 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size,
198 error_setg(
199 errp,
200 "Processing of IGVM file failed: Could not prepare memory "
201 - "at address 0x%" PRIx64 ": region size exceeded",
202 - addr);
201 + "at address 0x%" PRIx64 ": region size 0x%" PRIx64 " exceeded",
202 + addr, size);
203 return NULL;
204 }
205 return qemu_map_ram_ptr(mrs.mr->ram_block, mrs.offset_within_region);