id = 1177 title = "booting linux hangs with -cpu max or -cpu max,lpa2=off, but works with -cpu cortex-a57" state = "closed" created_at = "2022-08-25T16:33:57.991Z" closed_at = "2022-08-26T19:21:18.205Z" labels = ["accel: TCG", "target: arm"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1177" host-os = "FreeBSD" host-arch = "x86 (host)" qemu-version = "QEMU emulator version 7.0.94 (v7.1.0-rc4-dirty)" guest-os = "ubuntu" guest-arch = "aarch64" description = """""" reproduce = """1. Snag mini.iso from http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/main/installer-arm64/current/images/netboot/mini.iso 2. qemu-img create ubuntu-image.img 20G 3. dd if=/dev/zero of=flash1.img bs=1M count=64 4. dd if=/dev/zero of=flash0.img bs=1M count=64 5. dd if=/home/imp/git/qemu/00-build/pc-bios/edk2-aarch64-code.fd of=flash0.img conv=notrunc 6. Run the above command 7. Select install, watch the kernel hang. 8. Change -cpu max to -cpu cortex-a57 and it will work. -cpu max,lpa2=off also exhibits the problem""" additional = """Just grabbed git and built it with ./configure in /home/imp/git/qemu/00-build. pm215 on irc suggested that it was an old EDK2 and a newer one is needed to cope with the newer CPU features in -cpu max"""