From: Richard Henderson <richard.henderson@linaro.org>
To: Andreas Schwab <schwab@suse.de>,
Peter Maydell <peter.maydell@linaro.org>
Cc: Warner Losh <imp@bsdimp.com>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: linux-user cannot allocate stack memory on riscv64 host due to non-zero guest_base
Date: Mon, 1 Jul 2024 09:05:13 -0700 [thread overview]
Message-ID: <f681575f-1dae-481e-8330-6fe2fc8d0f11@linaro.org> (raw)
In-Reply-To: <mvmr0cdjjlh.fsf@suse.de>
Hi Andreas,
Thanks for the test binary.
Now I need to know about your qemu version and build configuration.
Your test binary still works for me. My configuration:
Debian GNU/Linux trixie/sid
gcc version 13.2.0 (Debian 13.2.0-25)
commit 60b4f3aff4e39be04f5d73c65a7e8ef838475c9f (HEAD, tag: v9.0.1, origin/stable-9.0)
../src/configure --static --disable-system --disable-tools --disable-docs
qemu-riscv64: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, version 1
(SYSV), statically linked, BuildID[sha1]=86144e2f215344440f3e21b65b2cf2b8cb33c67f, for
GNU/Linux 4.15.0, with debug_info, not stripped
LOAD 0x0000000000000000 0x0000000000010000 0x0000000000010000
0x000000000035feae 0x000000000035feae R E 0x1000
LOAD 0x0000000000360708 0x0000000000370708 0x0000000000370708
0x0000000000070ebc 0x00000000000833f0 RW 0x1000
So the end of .bss is at 0x3f3af8.
With -d page, I get
Locating guest address space @ 0x3f4000
which is uncomfortably close to the end of .bss, but seems to work.
r~
next prev parent reply other threads:[~2024-07-01 16:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-25 11:37 linux-user cannot allocate stack memory on riscv64 host due to non-zero guest_base Andreas Schwab
2024-06-25 15:47 ` Richard Henderson
2024-06-26 8:23 ` Andreas Schwab
2024-06-26 15:48 ` Richard Henderson
2024-06-26 15:54 ` Warner Losh
2024-06-27 7:54 ` Andreas Schwab
2024-06-27 14:14 ` Warner Losh
2024-06-27 14:26 ` Andreas Schwab
2024-06-27 14:55 ` Peter Maydell
2024-07-01 14:02 ` Andreas Schwab
2024-07-01 16:05 ` Richard Henderson [this message]
2024-07-02 8:09 ` Andreas Schwab
2024-07-02 14:13 ` Richard Henderson
2024-07-02 14:18 ` Andreas Schwab
2024-07-02 14:18 ` Richard Henderson
2024-07-02 14:39 ` Andreas Schwab
2024-07-02 14:45 ` Richard Henderson
2024-07-02 13:37 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f681575f-1dae-481e-8330-6fe2fc8d0f11@linaro.org \
--to=richard.henderson@linaro.org \
--cc=imp@bsdimp.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).