On 01/27/2014 08:53 PM, Amos Kong wrote:
vm_config_groups[] contain the options which have parameter, but
some
legcy options haven't been added to vm_config_groups[].
s/legcy/legacy/
All the options can be found in qemu-options.hx, this patch used two
new marcos to generate two tables, we can check if the option name is
s/marcos/macros/
valid and if the option has arguments.
This patch also try to visit all the options in option_names[], then
we won't lost the legacy options that weren't added to vm_config_groups[].
s/lost/lose/
The options have no arguments will also be returned (eg:
-enable-fips)
s/options/options that/
Signed-off-by: Amos Kong <akong(a)redhat.com>
---
util/qemu-config.c | 41 +++++++++++++++++++++++++++++++++++------
1 file changed, 35 insertions(+), 6 deletions(-)
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org