From: Richard Henderson <richard.henderson@linaro.org>
To: "Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: "Laurent Vivier" <lvivier@redhat.com>,
"Niccolò Belli" <darkbasic@linuxsystems.it>,
"open list:sPAPR" <qemu-ppc@nongnu.org>,
"QEMU Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] ELF load command alignment not page-aligned
Date: Tue, 17 Sep 2019 12:12:55 -0700 [thread overview]
Message-ID: <88e64ee8-0fe4-ccb7-03c6-40f391e39d1d@linaro.org> (raw)
In-Reply-To: <CAFEAcA94_kJ=5ABvB6B11U5NKpxka7e11tkB46m7qSMBFQQW9A@mail.gmail.com>
On 9/17/19 7:40 AM, Peter Maydell wrote:
> On Tue, 17 Sep 2019 at 11:49, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>>
>> Cc'ing PPC folks and Laurent.
>>
>> On 9/16/19 11:06 PM, Niccolò Belli wrote:
>>> Hi,
>>> I'm trying to use qemu-user-static to chroot into a foreign amd64
>>> environment from my ppc64le host.
>>> The host has a 64k page size, while x86_64 uses 4k.
>>> I get those errors while loading shared libraries: "ELF load command
>>> alignment not page-aligned"
>>> Is there any way to fix this? I cannot simply switch to 4k page size
>>> because my btrfs filesystem won't mount anymore (it requires the
>>> sectorsize to be equal to the page size).
>
> I vaguely recall that the answer is that we don't really
> support running a linux-user guest which has a smaller page
> size than the host. There are some sort-of-hacks in the code,
> so some simple cases might more-or-less work, but I'm not
> very surprised that you've run into something that doesn't
> work.
>
> Cc:ing Richard who probably has a more accurate answer.
You are correct that this combination will not work.
This combination is exactly why I've proposed enabling softmmu for linux-user.
With that, arbitrary mappings can be made between host and guest. But it's a
fair amount of effort, which no one has yet found time for.
r~
prev parent reply other threads:[~2019-09-17 19:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-16 21:06 [Qemu-devel] ELF load command alignment not page-aligned Niccolò Belli
2019-09-17 10:33 ` Philippe Mathieu-Daudé
2019-09-17 10:40 ` Laurent Vivier
2019-09-17 11:09 ` Niccolò Belli
2019-09-17 11:35 ` Laurent Vivier
2019-09-17 11:40 ` Peter Maydell
2019-09-17 19:12 ` Richard Henderson [this message]
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=88e64ee8-0fe4-ccb7-03c6-40f391e39d1d@linaro.org \
--to=richard.henderson@linaro.org \
--cc=darkbasic@linuxsystems.it \
--cc=lvivier@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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).