Re: [Qemu-devel] [PATCH] exec: file_ram_alloc(): print error when prealloc fails

2014-09-08 Thread Eric Blake
On 09/08/2014 12:08 PM, Luiz Capitulino wrote: > 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

[Qemu-devel] [PATCH] exec: file_ram_alloc(): print error when prealloc fails

2014-09-08 Thread 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 -m