vl: make -accel help to list enabled accelerators only
commitcbe6d6365a48bce4526c664170cda6fe738484f8
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Thu, 30 May 2019 21:57:55 +0000 (30 17:57 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:00 +0000 (3 14:03 +0200)
tree22087332ee4c1398cde8db23b31de4686b9eb1e7
parentaa0d7ed658f6afbdbcf4ceb8613b3c2cf5fbc7c4
vl: make -accel help to list enabled accelerators only

Currently, -accel help shows all possible accelerators regardless
if they are enabled in the binary or not. That is a different
semantic from -cpu and -machine helps, for example. So this change
makes it to list only the accelerators which support is compiled
in the binary target.

Note that it does not check if the accelerator is enabled in the
host, so the help message's header was rewritten to emphasize
that. Also qtest is not displayed given that it is used for
internal testing purpose only.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190530215755.328-2-wainersm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c