From 8776c28b101d7382ec95e868726fa9fd5b3428fd Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Fri, 12 Jun 2026 18:47:40 +0800 Subject: [PATCH] test(run-qemu): use efi firmware when testing on loongarch64 When testing on loongarch64, we should use EFI firmware, since the UEFI runtime services and ACPI tables are required by the linux kernel for loongarch64. --- test/run-qemu | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/run-qemu b/test/run-qemu index 9ebb9e191..fdeb4b5b3 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -64,6 +64,13 @@ get_uefi_code() { arm | armhf | armv7l) paths=("/usr/share/AAVMF/AAVMF32_CODE.fd") ;; + loong64 | loongarch64) + paths=( + "/usr/share/qemu-efi-loongarch64/QEMU_EFI.fd" + "/usr/share/LA64VMF/QEMU_EFI.fd" + "/usr/share/edk2/loongarch64/QEMU_EFI.fd" + ) + ;; esac for path in "${paths[@]}"; do if [[ -s $path ]]; then -- 2.47.3