On 7/8/26 14:09, Miao Wang wrote:
Hi,
2026年7月8日 19:38,Michael Tokarev <[email protected]> 写道:
On 30.06.2026 10:56, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Hard coding PAGE_SIZE to 4K will prevent user-only emulation from
working on hosts with 16K page size.
Doesn't the same apply to all other targets - hard-coding PAGE_SIZE to
4k for any linux-user target will prevent this target from working on
hosts with 16k page size?
I believe so. It seem that qemu-user might have trouble handling guest
with smaller page size than the host, IIUC. If a certain target requires
4K page size while the host has a larger page size, then there will
be no way to handle this. Using this patch just allows to use the
same page size as the host when possible.
BTW, in Debian, there are currently two "special" architectures,
which are s390x and loong64. S390x is the only one with big-endianness
Just for the record:
hppa is big-endian as well, and in addition it's a 32-bit arch (for linux-user).
while loong64 is the only one with 16K page size by default. As a
result, testing results on these two architectures can catch more
cross-architecture related bugs.
Cheers,
Miao Wang