diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-04-04 17:39:33 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-04-18 10:33:36 +0400 |
commit | b321afbefd2279a8c93b31a2b13f202c017b974c (patch) | |
tree | 57a81dd8dac99c26a49e0c0ad410eb7c99106a9a /vl.c | |
parent | 2d03b49c3f225994c4b0b46146437d8c887d6774 (diff) |
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>
Diffstat (limited to 'vl.c')
-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); |