* [Qemu-devel] [PATCH] exec: file_ram_alloc report mem prealloc errors
@ 2014-08-14 12:33 Peter Lieven
0 siblings, 0 replies; only message in thread
From: Peter Lieven @ 2014-08-14 12:33 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, Peter Lieven
if an error occurs initializing hugetables and mem prealloc is enabled
qemu exits silently without dumping the error.
Signed-off-by: Peter Lieven <pl@kamp.de>
---
exec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/exec.c b/exec.c
index 765bd94..8123186 100644
--- a/exec.c
+++ b/exec.c
@@ -34,6 +34,7 @@
#include "qemu/timer.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
+#include "qapi/qmp/qerror.h"
#include "exec/memory.h"
#include "sysemu/dma.h"
#include "exec/address-spaces.h"
@@ -1095,6 +1096,9 @@ static void *file_ram_alloc(RAMBlock *block,
error:
if (mem_prealloc) {
+ if (*errp) {
+ qerror_report_err(*errp);
+ }
exit(1);
}
return NULL;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 12:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 12:33 [Qemu-devel] [PATCH] exec: file_ram_alloc report mem prealloc errors Peter Lieven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).