mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

Use KVM or HVF if supported by the QEMU binary and available on the system. This produces a nice improvement on my Apple M3 Pro running macOS 14.7: Before: ./tools/testing/kunit/kunit.py exec --arch arm64 [HH:MM:SS] Elapsed time: 10.145s After: ./tools/testing/kunit/kunit.py exec --arch arm64 [HH:MM:SS] Elapsed time: 1.773s Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
13 lines
414 B
Python
13 lines
414 B
Python
from ..qemu_config import QemuArchParams
|
|
|
|
QEMU_ARCH = QemuArchParams(linux_arch='arm64',
|
|
kconfig='''
|
|
CONFIG_SERIAL_AMBA_PL010=y
|
|
CONFIG_SERIAL_AMBA_PL010_CONSOLE=y
|
|
CONFIG_SERIAL_AMBA_PL011=y
|
|
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y''',
|
|
qemu_arch='aarch64',
|
|
kernel_path='arch/arm64/boot/Image.gz',
|
|
kernel_command_line='console=ttyAMA0',
|
|
extra_qemu_params=['-machine', 'virt', '-cpu', 'max'])
|