mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
473a321122
commit
480bc11e61
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue