aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2024-06-06 21:57:42 -0600
committerWarner Losh <imp@bsdimp.com>2024-06-09 10:30:11 -0600
commit1b6f1b2e820302f08f262a09551767f14c0f98a6 (patch)
tree286e9d9fc3c158645b994e30ca9fd7532be568cf /linux-user
parent3e246da2c3f85298b52f8a1154b832acf36aa656 (diff)
downloadqemu-1b6f1b2e820302f08f262a09551767f14c0f98a6.zip
qemu-1b6f1b2e820302f08f262a09551767f14c0f98a6.tar.gz
qemu-1b6f1b2e820302f08f262a09551767f14c0f98a6.tar.bz2
linux-user: Adjust comment to reflect the code.
If the user didn't specify reserved_va, there's an else for 64-bit host 32-bit (or fewer) target to reserve 32-bits of address space. Update the comments to reflect this, and rejustify comment to 80 columns. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 94e4c47..94c99a1 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -814,10 +814,10 @@ int main(int argc, char **argv, char **envp)
thread_cpu = cpu;
/*
- * Reserving too much vm space via mmap can run into problems
- * with rlimits, oom due to page table creation, etc. We will
- * still try it, if directed by the command-line option, but
- * not by default.
+ * Reserving too much vm space via mmap can run into problems with rlimits,
+ * oom due to page table creation, etc. We will still try it, if directed
+ * by the command-line option, but not by default. Unless we're running a
+ * target address space of 32 or fewer bits on a host with 64 bits.
*/
max_reserved_va = MAX_RESERVED_VA(cpu);
if (reserved_va != 0) {