diff mbox

[v2] qemu: improve hugepage allocation failure message

Message ID 20180115201700.GA4439@amt.cnet (mailing list archive)
State New, archived
Headers show

Commit Message

Marcelo Tosatti Jan. 15, 2018, 8:17 p.m. UTC
Improve hugepage allocation failure message, indicating
what is happening to the user.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

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

Patch

diff --git a/numa.c b/numa.c
index 7b9c33a..1f1aff1 100644
--- a/numa.c
+++ b/numa.c
@@ -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.