On Wed, 23 Oct 2024 at 20:47, Alex Bennée alex.bennee@linaro.org wrote:
Agreed. However I think we were masking a calling issue that:
/* Actual RAM size depends on initial RAM and device memory settings */ [VIRT_MEM] = { GiB, LEGACY_RAMLIMIT_BYTES },
And:
-m 4G
make no sense with no ARM_LPAE (which the kernel didn't have)
QEMU can't tell if the guest the user wants to boot understands LPAE or not; it just provides the 4GB of RAM, PCIe window above 4GB, etc, and describes them in the dtb. It's up to the guest kernel to correctly handle the >32bit addresses in the dtb, i.e. if it is non-LPAE to ignore those resources it can't access because they're out of range.
-- PMM