Make -machine/-enable-kvm options merge into a single list
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Feb 2012 05:41:38 +0000 (05:41 +0000)
committerAndrzej Zaborowski <balrogg@gmail.com>
Fri, 17 Feb 2012 08:10:13 +0000 (09:10 +0100)
commit9de36b1a7cf61aa8be365f13c81668b3e19fbc7f
tree18f07ab85fab832f67274616e533cdc05a12d8be
parentda93318a9f0ff83e4a93e8755fa92291f9b8cc1b
Make -machine/-enable-kvm options merge into a single list

Make the "machine" option list use list merging, so that multiple
-machine arguments (and the -enable-kvm argument) all merge together
into a single list. Drop the calls to qemu_opts_reset() which meant
that only the last -machine or -enable-kvm option had any effect.

This fixes the bug where "-enable-kvm -machine foo" would ignore
the '-enable-kvm' option, and "-machine foo -enable-kvm" would
ignore the '-machine foo' option.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
qemu-config.c
vl.c