[PATCH v6 7/8] selftests/kho: Add LoongArch vmtest support

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Oct 29 10:47:19 PDT 2026


> From: George Guo <guodongtai at kylinos.cn>
> 
> Add loongarch.conf to run the test on QEMU's LoongArch virtual machine
> with a la464 CPU and an 8250 serial console, and let vmtest.sh accept
> the loongarch64 target.
> 
> Boot vmlinux.efi through EFI firmware. The EFI stub installs the KHO EFI
> table, and QEMU's direct kernel boot would skip the stub. QEMU_EFI
> defaults to /usr/share/edk2/loongarch64/QEMU_EFI.fd and can be set for
> distributions that install the firmware elsewhere, such as Debian's
> qemu-efi-loongarch64 package.
> 
> QEMU's LoongArch virtual machine has no i8042 controller. Enable the
> generic PCI host so its I/O space is mapped before the i8042 fallback
> probe touches the legacy ports. This keeps i8042 enabled, so the same
> kernel configuration still works on real hardware.
> 
> Enable ACPI_SPCR_TABLE so the bare earlycon parameter gets the UART from
> the SPCR table installed by EDK2. Unlike x86, LoongArch does not enable
> it by default, and without it there is no early console and vmtest sees
> no early boot output.
> 
> The KHO vmtest needs CONFIG_DEFERRED_STRUCT_PAGE_INIT=y, which depends
> on SPARSEMEM, so select CONFIG_SPARSEMEM_MANUAL=y.
> 
> Co-developed-by: Kexin Liu <liukexin at kylinos.cn>
> Signed-off-by: Kexin Liu <liukexin at kylinos.cn>
> Signed-off-by: George Guo <guodongtai at kylinos.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261029172956.20791-1-dongtai.guo@linux.dev?part=7




More information about the kexec mailing list