[kvm-unit-tests PATCH v2 6/8] riscv: efi: Allow ACPI boots
Andrew Jones
andrew.jones at linux.dev
Fri Nov 20 02:12:19 PST 2026
On Thu, Nov 05, 2026 at 04:20:33PM +0800, Xiang W wrote:
> riscv/efi/run rejected EFI_USE_ACPI=y because CPU, timer and ISA
> discovery aborted without a DT. Those paths can now walk MADT and
> RHCT, so drop the early exit.
>
> The existing runner already omits -machine acpi=off when
s/omits/adds/
> EFI_USE_ACPI!=y. QEMU virt defaults to ACPI enabled, so no extra
> acpi=on flag is required. DT boots are unchanged: they still pass
> acpi=off.
>
> Tested with:
>
> EFI_USE_ACPI=y EFI_UEFI=/path/to/RISCV_VIRT_CODE.fd \
> ./riscv/efi/run riscv/riscv-brs.efi
>
> Signed-off-by: Xiang W <wangxiang at iscas.ac.cn>
> ---
> riscv/efi/run | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/riscv/efi/run b/riscv/efi/run
> index b9b75440..a53b3a2c 100755
> --- a/riscv/efi/run
> +++ b/riscv/efi/run
> @@ -39,11 +39,6 @@ if [ ! -f "$EFI_UEFI" ]; then
> exit 2
> fi
>
> -if [ "$EFI_USE_ACPI" = "y" ]; then
> - echo "ACPI not available"
> - exit 2
> -fi
> -
> # Remove the TEST_CASE from $@
> shift 1
>
> --
> 2.47.3
>
More information about the kvm-riscv
mailing list