tools/testing/kunit/qemu_configs/loongarch.py

Source file repositories/reference/linux-study-clean/tools/testing/kunit/qemu_configs/loongarch.py

File Facts

System
Linux kernel
Corpus path
tools/testing/kunit/qemu_configs/loongarch.py
Extension
.py
Size
576 bytes
Lines
22
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0

from ..qemu_config import QemuArchParams

QEMU_ARCH = QemuArchParams(linux_arch='loongarch',
			   kconfig='''
CONFIG_EFI_STUB=n
CONFIG_PCI_HOST_GENERIC=y
CONFIG_PVPANIC=y
CONFIG_PVPANIC_PCI=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_OF_PLATFORM=y
''',
			   qemu_arch='loongarch64',
			   kernel_path='arch/loongarch/boot/vmlinux.elf',
			   kernel_command_line='console=ttyS0 kunit_shutdown=poweroff',
			   extra_qemu_params=[
					   '-machine', 'virt',
					   '-device', 'pvpanic-pci',
					   '-cpu', 'max',])

Annotation

Implementation Notes