accel: Improve selection of the default accelerator
commit98e56ae6798cc5f5e432e8d93d5d18ebdeb7e496
authorThomas Huth <thuth@redhat.com>
Fri, 5 Oct 2018 14:13:12 +0000 (5 16:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 12:57:23 +0000 (11 13:57 +0100)
tree7a537a59dc600cb6c0a1196e1edfe3a5c14bb3b4
parenta311f891abf3833c1e4c5a62a6e5b0f1b81f22c3
accel: Improve selection of the default accelerator

When compiling with "--disable-tcg", we currently still use "tcg"
as default accelerator. "kvm" should be used in this case instead.
Also, some downstream distros provide QEMU binaries which have "kvm"
in their names (e.g. "qemu-kvm" on RHEL or "kvm" on Ubuntu) that use
KVM by default - and some users might want to do something similar
with upstream binaries, too. Accomodate them by using "kvm:tcg" as
default when we detect such a binary name.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1538748792-19444-1-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel.c
include/sysemu/accel.h
vl.c