Skip to contentSkip to conversation

igvm: spit out region size on error

PATCH In review Ani Sinha 2 participants 2 messages Jun 7 – Jun 8

lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH 1/1 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.

---
 backends/igvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
backends/igvm.c +2 -2
index 31ff6ee0b2..8b578b3b5b 100644
@@ -207,8 +207,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);
Signature · 1 line
2.54.0