提交 097b8cb8 编写于 作者: P Peter Maydell 提交者: Riku Voipio

linux-user: Clarify "Unable to reserve guest address space" error

Now that we default to reserving nearly 4GB of RAM for the guest
address space when running a 32 bit linux-user guest on 64 bit
hosts, users are much more likely to run into it. Reword the
message to be more informative about what failed and provide
suggestions for how to fix things.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
上级 333858b7
...@@ -3519,7 +3519,10 @@ int main(int argc, char **argv, char **envp) ...@@ -3519,7 +3519,10 @@ int main(int argc, char **argv, char **envp)
guest_base = init_guest_space(guest_base, reserved_va, 0, guest_base = init_guest_space(guest_base, reserved_va, 0,
have_guest_base); have_guest_base);
if (guest_base == (unsigned long)-1) { if (guest_base == (unsigned long)-1) {
fprintf(stderr, "Unable to reserve guest address space\n"); fprintf(stderr, "Unable to reserve 0x%lx bytes of virtual address "
"space for use as guest address space (check your virtual "
"memory ulimit setting or reserve less using -R option)\n",
reserved_va);
exit(1); exit(1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册