Skip to content

Commit

Permalink
vl: Report accelerator not supported for target more nicely
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen-Gang authored and Michael Tokarev committed Apr 18, 2014
1 parent 2d03b49 commit b321afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b321afb

Please sign in to comment.