]> git.proxmox.com Git - mirror_qemu.git/commit
accel: cleanup error output
authorLaurent Vivier <lvivier@redhat.com>
Mon, 17 Jul 2017 14:45:27 +0000 (16:45 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Aug 2017 21:13:25 +0000 (00:13 +0300)
commit2f6b38d171b11c2cedd294e2e7e50e110702f5ef
tree34a4cc56a23960d99e8a38bd02663bad3b8ea569
parent07f7b73398de3b60f28301a9af2a2338710105c7
accel: cleanup error output

Only emit "XXX accelerator not found", if there are not
further accelerators listed. eg

   accel=kvm:tcg

doesn't print a "KVM accelerator not found" warning
when it falls back to tcg, but a

   accel=kvm

prints a warning, since no fallback is given.

Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
accel/accel.c