Skip to contentSkip to conversation

QMP queue

GIT PULL Applied Luiz Capitulino 2 participants 4 messages Sep 12, 2014 – Sep 15, 2014

lore
Share & tools
lore
#0 lore raw

Two trivial fixes.

The following changes since commit 6cd14054b67774cc58a51fca6660cfa1d3c08059:

libqos virtio: Increase ISR timeout (2014-09-12 13:58:07 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/qmp-unstable.git queue/qmp

for you to fetch changes up to e4d9df4fb16861f413374b69fcdb12c8c7a4a17e:

exec: file_ram_alloc(): print error when prealloc fails (2014-09-12 11:22:21 -0400)

----------------------------------------------------------------
Gonglei (1):
monitor: fix debug print compiling error

Luiz Capitulino (1):
exec: file_ram_alloc(): print error when prealloc fails

 exec.c    | 1 +
 monitor.c | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/2] monitor: fix debug print compiling error

From: Gonglei <[email protected]>

error: 'i' undeclared (first use in this function)

---
 monitor.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
monitor.c +5 -2
index 34cee74..667efb7 100644
@@ -4747,8 +4747,11 @@ static void monitor_find_completion(void *opaque,
         return;
     }
 #ifdef DEBUG_COMPLETION
-    for (i = 0; i < nb_args; i++) {
-        monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+    {
+        int i;
+        for (i = 0; i < nb_args; i++) {
+            monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+        }
     }
 #endif
 
Signature · 1 line
1.9.3
#2 lore raw

[Qemu-devel] [PULL 2/2] exec: file_ram_alloc(): print error when prealloc fails

In reply to Luiz Capitulino

If memory allocation fails when using the -mem-prealloc command-line option, QEMU exits without printing any error information to the user:

 # qemu [...] -m 1G -mem-prealloc -mem-path /dev/hugepages
 # echo $?
 1

This commit adds an error message, so that we print instead:

 # qemu [...] -m 1G -mem-prealloc -mem-path /dev/hugepages
 qemu: unable to map backing store for hugepages: Cannot allocate memory
---
 exec.c | 1 +
 1 file changed, 1 insertion(+)
exec.c +1 -0
index 7dddcc8..cb73d16 100644
@@ -1130,6 +1130,7 @@ static void *file_ram_alloc(RAMBlock *block,
 
 error:
     if (mem_prealloc) {
+        error_report("%s\n", error_get_pretty(*errp));
         exit(1);
     }
     return NULL;
Signature · 1 line
1.9.3
#3 lore raw
In reply to Luiz Capitulino
Quoted 18 lines · Luiz Capitulino

Two trivial fixes.

The following changes since commit 6cd14054b67774cc58a51fca6660cfa1d3c08059:

libqos virtio: Increase ISR timeout (2014-09-12 13:58:07 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/qmp-unstable.git queue/qmp

for you to fetch changes up to e4d9df4fb16861f413374b69fcdb12c8c7a4a17e:

exec: file_ram_alloc(): print error when prealloc fails (2014-09-12 11:22:21 -0400)

----------------------------------------------------------------
Gonglei (1):
monitor: fix debug print compiling error

Quoted 6 lines

Luiz Capitulino (1):
exec: file_ram_alloc(): print error when prealloc fails

 exec.c    | 1 +
 monitor.c | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Applied, thanks.

-- PMM