]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kunit: enable hardware acceleration when available
authorTamir Duberstein <tamird@gmail.com>
Sat, 2 Nov 2024 12:09:49 +0000 (08:09 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 14 Jan 2025 21:56:56 +0000 (14:56 -0700)
commit220374e70b0b9d44ab5ec1106bc16caf20f94d80
treeea902cfeb086a810e66fdd9a91704fa56cd6dc30
parent56530007cac0630140a0846dd6110d60105a58ac
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>
tools/testing/kunit/kunit_kernel.py
tools/testing/kunit/qemu_configs/arm64.py