diff options
author | 2014-04-04 17:39:33 +0800 | |
---|---|---|
committer | 2014-04-18 10:33:36 +0400 | |
commit | b321afbefd2279a8c93b31a2b13f202c017b974c (patch) | |
tree | 57a81dd8dac99c26a49e0c0ad410eb7c99106a9a | |
parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140417-1' into staging (diff) | |
download | qemu-b321afbefd2279a8c93b31a2b13f202c017b974c.tar.xz qemu-b321afbefd2279a8c93b31a2b13f202c017b974c.zip |
vl: Report accelerator not supported for target more nicely
When you ask for an accelerator not supported for your target, you get
a bogus "accelerator does not exist" message:
$ qemu-system-arm -machine none,accel=kvm
KVM not supported for this target
"kvm" accelerator does not exist.
No accelerator found!
Suppress it.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2740,7 +2740,7 @@ static int configure_accelerator(QEMUMachine *machine) if (!accel_list[i].available()) { printf("%s not supported for this target\n", accel_list[i].name); - continue; + break; } *(accel_list[i].allowed) = true; ret = accel_list[i].init(machine); |