./qemu-system-loongarch64 \
-M virt,pflash=libvirt-pflash0-format \
-cpu la464-loongarch-cpu \
-smp 4 \
-m 8G \
-bios QEMU_EFI.fd \
-blockdev '{"driver":"file","filename":"QEMU_VARS.fd","node-name":"libvirt-pflash0-storage","auto-read-only":false,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":false,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-device nec-usb-xhci,id=xhci,addr=0x1b \
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
-device usb-kbd,id=keyboard,bus=xhci.0,port=2 \
-device usb-audio \
-device virtio-net-pci,netdev=n1 \
-netdev user,id=n1,ipv6=off,hostfwd=tcp::5555-:22 \
-device virtio-gpu-pci \
-device virtio-blk-pci,drive=test_cddrv \
-drive file="archlinux-2023.04.01.1-loong64.iso",if=none,id=test_cddrv,format=raw,media=cdrom \
-device virtio-blk-pci,drive=test_hdd \
-drive file="./qemu_loongarch.vhd",if=none,id=test_hdd,format=vpc,media=disk \
-rtc base=utc,clock=rt \
-accel tcg,thread=multi
参考