After installing Ubuntu 22.04 LTS, Windows 11 and Rocky Linux with QEMU 7.0 (qemu-system-aarch64), VM does not restart and freezes. I myself close QEMU with CTRL+C. As a result, it either does not see the HDD or OVMF does not work at all.
Note: With ITS turned on, Windows crashes while booting, but Linux distributions work fine. Also, ITS works with the following warning:
warning: ITS KVM: full reset is not supported by the host kernel
My parameter:
qemu-system-aarch64 -m 2G -cpu host -accel kvm -device usb-ehci -device intel-hda -M virt-6.1,its=off -smp 8 -device ramfb -device usb-kbd -device usb-mouse -device usb-tablet -drive file=/sdcard/rocky.iso,media=cdrom,if=none,id=drivers -device usb-storage,drive=drivers -device ahci,id=ahci -accel 3d -drive id=disk,file=/sdcard/w11.raw,if=none -device ide-hd,drive=disk,bus=ahci.0 -chardev socket,id=chrtpm,path=/data/local/tmp/ubuntu/emulated_tpm -tpmdev emulator,id=tpm0,chardev=chrtpm -pflash /sdcard/flash0.img -pflash /sdcard/flash1.img