summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2014-04-04 17:39:33 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-04-18 10:33:36 +0400
commitb321afbefd2279a8c93b31a2b13f202c017b974c (patch)
tree57a81dd8dac99c26a49e0c0ad410eb7c99106a9a /vl.c
parent2d03b49c3f225994c4b0b46146437d8c887d6774 (diff)
downloadqemu-b321afbefd2279a8c93b31a2b13f202c017b974c.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 9975e5a4e3..db9ea90a1d 100644
--- a/vl.c
+++ b/vl.c
@@ -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);