From 48e6e4202e12af36671c6479b9ebcb8212d37cbb Mon Sep 17 00:00:00 2001 From: David Matlack Date: Thu, 8 Oct 2026 13:28:13 +0000 Subject: [PATCH] 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 Reviewed-by: Pratyush Yadav Link: https://patch.msgid.link/20261008132813.1966023-1-dmatlack@google.com Signed-off-by: Mike Rapoport (Microsoft) --- tools/testing/selftests/liveupdate/vmtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" \