edk2-aarch64-202311-1 breaks with Qemu ≥ 9.0 when emulating virtualization
Since Qemu 9.0, qemu-system-aarch64 (running on x86_64) cannot boot with -M virt,virtualization=true, when running UEFI provided by edk2-aarch64-202311-1. If the virtualization is enabled in the emulated machine, it hangs in a busy loop early in the start sequence.
Qemu CHANGELOG mentions this. Of the three suggested work-arounds:
- using a versioned machine type (
virt-8.2) does not work for me; - using “edk2-stable202311 or newer” (currently in the repo) does not work either; and
- not using inner virtualization is not an option.
What does work is using Fedora's prebuilt binaries of release 20240524, demonstrating that 202311 is not fully compatible with Qemu 9.0.
So I guess this is a polite request to update EDK2. I understand that the use-case fantastically niche, but I make heavy use of it to debug ARM hypervisors on my Arch machine :D .