]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
igvm: spit out region size on error
authorAni Sinha <anisinha@redhat.com>
Sun, 7 Jun 2026 14:41:44 +0000 (20:11 +0530)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 12 Jun 2026 14:56:30 +0000 (17:56 +0300)
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>
backends/igvm.c

index c347d0c17e7ee744e450d42e677946abad8a7211..9b889f04287ee011c74ed67ee63ac449caa3c355 100644 (file)
@@ -198,8 +198,8 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size,
             error_setg(
                 errp,
                 "Processing of IGVM file failed: Could not prepare memory "
-                "at address 0x%" PRIx64 ": region size exceeded",
-                addr);
+                "at address 0x%" PRIx64 ": region size 0x%" PRIx64 " exceeded",
+                addr, size);
             return NULL;
         }
         return qemu_map_ram_ptr(mrs.mr->ram_block, mrs.offset_within_region);