linux/tools/testing/kunit
Tamir Duberstein 220374e70b kunit: enable hardware acceleration when available
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>
2025-01-14 14:56:56 -07:00
..
configs linux_kselftest-kunit-fixes-6.9-rc2 2024-03-29 15:35:12 -07:00
qemu_configs kunit: enable hardware acceleration when available 2025-01-14 14:56:56 -07:00
test_data
.gitignore
kunit.py kunit: add fallback for os.sched_getaffinity 2025-01-14 14:56:49 -07:00
kunit_config.py
kunit_json.py
kunit_kernel.py kunit: enable hardware acceleration when available 2025-01-14 14:56:56 -07:00
kunit_parser.py kunit: tool: print failed tests only 2024-11-19 14:52:17 -07:00
kunit_printer.py kunit: tool: Only print the summary 2024-11-19 14:52:17 -07:00
kunit_tool_test.py kunit: tool: print failed tests only 2024-11-19 14:52:17 -07:00
mypy.ini
qemu_config.py
run_checks.py