Skip to content

Commit 62adcae

Browse files
t-8chshuahkh
authored andcommitted
kunit: qemu_configs: loongarch: Enable shutdown
QEMU for LoongArch does not yet support shutdown/restart through ACPI. Use the pvpanic driver to enable shutdowns. This requires 9.1.0 for shutdown support in pvpanic, but that is the requirement of kunit on LoongArch anyways. Link: https://lore.kernel.org/r/20241111-kunit-loongarch-v2-3-7676eb5f2da3@linutronix.de Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 0a1111d commit 62adcae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/testing/kunit/qemu_configs/loongarch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
kconfig='''
77
CONFIG_EFI_STUB=n
88
CONFIG_PCI_HOST_GENERIC=y
9+
CONFIG_PVPANIC=y
10+
CONFIG_PVPANIC_PCI=y
911
CONFIG_SERIAL_8250=y
1012
CONFIG_SERIAL_8250_CONSOLE=y
1113
CONFIG_SERIAL_OF_PLATFORM=y
1214
''',
1315
qemu_arch='loongarch64',
1416
kernel_path='arch/loongarch/boot/vmlinux.elf',
15-
kernel_command_line='console=ttyS0',
17+
kernel_command_line='console=ttyS0 kunit_shutdown=poweroff',
1618
extra_qemu_params=[
1719
'-machine', 'virt',
20+
'-device', 'pvpanic-pci',
1821
'-cpu', 'max',])

0 commit comments

Comments
 (0)