On 9/9/25 07:36, Michael Tokarev wrote:
On 15.02.2024 09:19, Richard Henderson wrote:
AT_PAGESZ is supposed to advertise the guest page size.
The random adjustment made here using qemu_host_page_size
does not match anything else within linux-user.

The idea here is good, but should be done more systemically
via adjustment to TARGET_PAGE_SIZE.

Hi!

This change broke execution of armhf binaries on 16k-pagesized
aarch64 host.  See https://bugs.debian.org/1114725 for a few more
details and the reproducer.

 From the commit message this seems to be intentional to remove
such support.  But is it really intentional that it doesn't work
anymore?  Should the mentioned adjustments to TARGET_PAGE_SIZE
compensate for this change?

We have only trivial support for host page size != guest page size.
Any time it does work is purely by accident.

Older systems like arm32 and i386 are more likely to fail than others, due to 
program layout.

The only reliable solution is to use softmmu with linux-user in these cases, so that host and guest page size, memory layout, etc are properly disconnected. This is a significant amount of work which no one has volunteered to do.


r~

Reply via email to