]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: test device passthrough on aarch64
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Fri, 27 Jun 2025 20:02:22 +0000 (13:02 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 1 Jul 2025 16:22:31 +0000 (17:22 +0100)
commit7bc86ccbb59f2022014e132327a33b94a7ed00fe
tree9b97c6840063248130b78bc2407b1f363a3672cc
parent9b4c8dd505b1630e3fdaca071886d1cd41019156
tests/functional: test device passthrough on aarch64

This test allows to document and exercise device passthrough, using a
nested virtual machine setup. Two disks are generated and passed to the
VM, and their content is compared to original images.

Guest and nested guests commands are executed through two scripts, and
init used in both system is configured to trigger a kernel panic in case
any command fails. This is more reliable and readable than executing all
commands through prompt injection and trying to guess what failed.

Initially, this test was supposed to test smmuv3 nested emulation
(combining both stages of translation), but I could not find any setup
(kernel + vmm) able to do the passthrough correctly, despite several
tries.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250627200222.5172-1-pierrick.bouvier@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/functional/meson.build
tests/functional/test_aarch64_device_passthrough.py [new file with mode: 0755]