]> Git Repo - qemu.git/commitdiff
boot-serial-test: fallback to kvm accelerator
authorCornelia Huck <[email protected]>
Fri, 11 Aug 2017 11:03:31 +0000 (13:03 +0200)
committerCornelia Huck <[email protected]>
Fri, 11 Aug 2017 13:44:05 +0000 (15:44 +0200)
Currently, at least x86_64 and s390x support building with --disable-tcg.
Instead of forcing tcg (which causes the test to fail on such builds),
allow to use kvm as well.

Reviewed-by: Daniel P. Berrange <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
tests/boot-serial-test.c

index 11f48b049ccd2b75dc840b5b6275967cafd553e7..a8ca877168e42ac7f7bef7f8672d728c15255360 100644 (file)
@@ -78,8 +78,9 @@ static void test_machine(const void *data)
     fd = mkstemp(tmpname);
     g_assert(fd != -1);
 
-    args = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s"
-                           " -no-shutdown -serial chardev:serial0 %s",
+    args = g_strdup_printf("-M %s,accel=kvm:tcg "
+                           "-chardev file,id=serial0,path=%s "
+                           "-no-shutdown -serial chardev:serial0 %s",
                            test->machine, tmpname, test->extra);
 
     qtest_start(args);
This page took 0.025273 seconds and 4 git commands to generate.