summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2026-10-08 13:28:13 +0000
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-10-13 12:52:20 +0300
commit48e6e4202e12af36671c6479b9ebcb8212d37cbb (patch)
tree1671e9ac81973de951b462c5a085678ce0f1dbc4 /tools
parentd5d21fffbff6d18fd9e746e31d8e5cdaff0f0b9d (diff)
selftests/liveupdate: Prefer KVM and HVF over TCG in vmtest.sh
Pass the -accel options to QEMU in the order KVM, HVF, TCG, so that vmtest.sh prefers to use KVM and HVF over TCG when they are available. QEMU uses the first accelerator in the list that initializes, and TCG always initializes, so the tests currently always run under TCG, even though the commit that added vmtest.sh describes "automatic accelerator detection (KVM, HVF, or TCG)". Fixes: 89dd1421c554 ("selftests/liveupdate: add end to end test infrastructure and scripts") Signed-off-by: David Matlack <dmatlack@google.com> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Link: https://patch.msgid.link/20261008132813.1966023-1-dmatlack@google.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/liveupdate/vmtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/liveupdate/vmtest.sh b/tools/testing/selftests/liveupdate/vmtest.sh
index 64fd2ab55b76..69beda6c961d 100755
--- a/tools/testing/selftests/liveupdate/vmtest.sh
+++ b/tools/testing/selftests/liveupdate/vmtest.sh
@@ -180,7 +180,7 @@ function run_qemu() {
echo "# Serial Log: $serial"
timeout 30s \
$qemu_cmd -m 1G -smp 2 -no-reboot -nographic -nodefaults \
- -accel tcg -accel hvf -accel kvm \
+ -accel kvm -accel hvf -accel tcg \
-serial file:"$serial" \
-append "$cmdline" \
-kernel "$kernel_path" \