qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can qemu-system-aarch64 boot a Linux kernel with 16K PAGE_SIZE?


From: Peter Maydell
Subject: Re: Can qemu-system-aarch64 boot a Linux kernel with 16K PAGE_SIZE?
Date: Sun, 4 Sep 2022 19:21:35 +0100

On Wed, 31 Aug 2022 at 17:13, Karim Manaouil <k.manaouil@gmail.com> wrote:
> I compiled Linux v6-rc3 for aarch64 using 16K pages (CONFIG_ARM64_64K_PAGES=y)
> but it doesn't seem to boot with qemu-system-aarch64 (no logs appear. However,
> it boots fine with 4K and 64K pages).
>
> I use the following command:
>
> qemu-system-aarch64 \
>        -machine virt \
>        -cpu cortex-a72 \
>        -smp 4 \
>        -m 2G \
>        -kernel $ARM_KERNEL \
>        -append "root=/dev/vda rw console=ttyAMA0 earlyprintk=serial" \
>        -hda $DISK_IMG
>        -nographic
>
> Then just a blank screen.
>
> Thus, the question is, can qemu-system-aarch64 boot a Linux kernel compiled 
> with 16K pages?

That depends which CPU you ask QEMU to emulate. A real hardware
Cortex-A72 does not support 16K pages, so the one QEMU emulates
does not implement them either. You might try the 'max' CPU
type, which enables support for all features that QEMU has
emulation support for, including all the architecturally
supported page sizes.

NB:

> Qemu version: QEMU emulator version 3.1.0

This is a very old version of QEMU. I can't remember when
we added 16K page support, you might well also need to use
a newer QEMU.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]