diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2014-10-16 15:13:32 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-11-02 10:04:34 +0300 |
commit | 404ac83efd5761c6b590fd9f00fbbe8ee2281aa6 (patch) | |
tree | 1ea183506c0764e331731e3ec31d7d93eead18ea /util/oslib-posix.c | |
parent | 2944d742f73d78120151fbc62b53f2ab79be89aa (diff) | |
download | qemu-404ac83efd5761c6b590fd9f00fbbe8ee2281aa6.zip qemu-404ac83efd5761c6b590fd9f00fbbe8ee2281aa6.tar.gz qemu-404ac83efd5761c6b590fd9f00fbbe8ee2281aa6.tar.bz2 |
util: Improve os_mem_prealloc error message
Currently, when the preallocating guest memory process fails, a not
so helpful error message is printed out:
# virsh start migt10
error: Failed to start domain migt10
error: internal error: process exited while connecting to monitor:
os_mem_prealloc: failed to preallocate pages
From the error message it's not clear at the first glance where the
problem lies. However, changing the error message might give users a
clue.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/oslib-posix.c')
-rw-r--r-- | util/oslib-posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 016a047..8c9d80e 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -390,7 +390,8 @@ void os_mem_prealloc(int fd, char *area, size_t memory) pthread_sigmask(SIG_UNBLOCK, &set, &oldset); if (sigsetjmp(sigjump, 1)) { - fprintf(stderr, "os_mem_prealloc: failed to preallocate pages\n"); + fprintf(stderr, "os_mem_prealloc: Insufficient free host memory " + "pages available to allocate guest RAM\n"); exit(1); } else { int i; |