I've compiled Qemu 9.0.2 for my system in the hope it would give me better luck and it's definitely functioning better without KVM but KVM is still not working. This is my Qemu command:
cat run_vm_kvm.sh
~/qemu/qemu-9.0.2/build/qemu-system-aarch64 \
-machine type=virt,accel=kvm,gic-version=host \
-cpu host \
-m 2G \
-smp 2 \
-bios /home/cosmo/qemu/qemu-9.0.2/build/pc-bios/edk2-aarch64-code.fd \
-device ramfb \
-device qemu-xhci \
-device usb-kbd \
-device usb-tablet \
-drive file=/home/cosmo/Downloads/Win11Arm.VHDX,format=vhdx,if=none,id=boot \
-device usb-storage,drive=boot,serial=boot \
-drive file=/home/cosmo/Downloads/virtio-win.iso,media=cdrom,if=none,id=iso \
-device usb-storage,drive=iso \
-nic user,model=virtio-net-pci,mac=**:**:**:**:**:** \
-vnc :0 \
-d int,cpu_reset,strace
Does anyone have any ideas?