diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-07-31 12:25:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:27 -0500 |
commit | f31d07d175b25ecca89f5d55dfdf2b55540e5e44 (patch) | |
tree | 29ac8173604ce126ff3c93a2ed08bd47627eb107 /qemu-config.c | |
parent | d058fe03e53699b5a85db1ea36edcf59273775a8 (diff) | |
download | qemu-f31d07d175b25ecca89f5d55dfdf2b55540e5e44.zip qemu-f31d07d175b25ecca89f5d55dfdf2b55540e5e44.tar.gz qemu-f31d07d175b25ecca89f5d55dfdf2b55540e5e44.tar.bz2 |
QemuOpts: switch over -device.
Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.
New: "-set device.$id.$property=$value" works.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index bcfb6eb..3dd473a 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -71,8 +71,22 @@ QemuOptsList qemu_drive_opts = { }, }; +QemuOptsList qemu_device_opts = { + .name = "device", + .head = TAILQ_HEAD_INITIALIZER(qemu_device_opts.head), + .desc = { + /* + * no elements => accept any + * sanity checking will happen later + * when setting device properties + */ + { /* end if list */ } + }, +}; + static QemuOptsList *lists[] = { &qemu_drive_opts, + &qemu_device_opts, NULL, }; |