Skip to contentSkip to conversation

qemu: improve hugepage allocation failure message

PATCH New Marcelo Tosatti 1 participant 1 message Jan 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qemu: improve hugepage allocation failure message

Improve hugepage allocation failure message, indicating what is happening to the user.

---
v2: move to allocate_system_memory_nonnuma (Paolo)
s/whats/what is/ (Eric)

numa.c +1 -0
index 7b9c33a..1f1aff1 100644
@@ -463,6 +463,7 @@ static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner,
             if (mem_prealloc) {
                 exit(1);
             }
+            error_report("falling back to regular RAM allocation.");
 
             /* Legacy behavior: if allocation failed, fall back to
              * regular RAM allocation.