]> git.proxmox.com Git - mirror_qemu.git/commit
softmmu/vl: Be less verbose about missing KVM when running the qtests
authorThomas Huth <thuth@redhat.com>
Fri, 10 Jul 2020 08:50:20 +0000 (10:50 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 13 Oct 2020 10:48:12 +0000 (12:48 +0200)
commiteaf65114f0585a914642c1ce1379bb8339984858
tree5ce2ae4a5f32021e0485232c0ed9890087c8737f
parenta4339de2de4def4beb33e22e6f506bcc8b9d9326
softmmu/vl: Be less verbose about missing KVM when running the qtests

Some of the qtests use "-accel kvm -accel tcg" to run real guest code.
This causes some error messages when kvm is not available. We do not
really care about these messages since the fallback to tcg is expected
here. So let's silence them to avoid that they spoil the output of
the tests.

Unfortunately, we can not use the qtest_enabled() wrapper in this case,
since the qtest accelerator itself is not initialized. Thus we have to
test for the qtest_chrdev variable instead.

Message-Id: <20200710085020.28222-1-thuth@redhat.com>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
softmmu/vl.c