diff options
| author | Luiz Capitulino | 2014-09-08 19:50:05 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-09-12 17:22:21 +0200 |
| commit | e4d9df4fb16861f413374b69fcdb12c8c7a4a17e (patch) | |
| tree | 75f16b7876f0af40749ff8d1023500dd66d0ae6b /coroutine-sigaltstack.c | |
| parent | monitor: fix debug print compiling error (diff) | |
| download | qemu-e4d9df4fb16861f413374b69fcdb12c8c7a4a17e.tar.gz qemu-e4d9df4fb16861f413374b69fcdb12c8c7a4a17e.tar.xz qemu-e4d9df4fb16861f413374b69fcdb12c8c7a4a17e.zip | |
exec: file_ram_alloc(): print error when prealloc fails
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
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'coroutine-sigaltstack.c')
0 files changed, 0 insertions, 0 deletions
