diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-10 19:52:18 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:45:34 +0100 |
commit | 8212c64f0e1b32300b7ec4e79885a0caf6f521a6 (patch) | |
tree | 2faf279be4942f2c30b535f508cf51ee88a82844 /hw/qdev.c | |
parent | 01e7f18869c9ee4c84793f4a39ec1f5f4128a0aa (diff) | |
download | qemu-8212c64f0e1b32300b7ec4e79885a0caf6f521a6.tar.gz qemu-8212c64f0e1b32300b7ec4e79885a0caf6f521a6.tar.bz2 qemu-8212c64f0e1b32300b7ec4e79885a0caf6f521a6.zip |
qemu-option: Move the implied first name into QemuOptsList
We sometimes permit omitting the first option name, for example
-device foo is short for -device driver=foo. The name to use
("driver" in the example) is passed as argument to qemu_opts_parse().
For each QemuOptsList, we use at most one such name.
Move the name into QemuOptsList, and pass whether to permit the
abbreviation. This ensures continued consistency, and simplifies the
commit after next in this series.
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -767,7 +767,7 @@ void do_device_add(Monitor *mon, const QDict *qdict) QemuOpts *opts; opts = qemu_opts_parse(&qemu_device_opts, - qdict_get_str(qdict, "config"), "driver"); + qdict_get_str(qdict, "config"), 1); if (opts) { if (qdev_device_help(opts) || qdev_device_add(opts) == NULL) { qemu_opts_del(opts); |