Commit 480bc11e authored by Cornelia Huck's avatar Cornelia Huck
Browse files

boot-serial-test: fallback to kvm accelerator



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: default avatarDaniel P. Berrange <berrange@redhat.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 473a3211
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -78,7 +78,8 @@ 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"
    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);