aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-11-09 12:15:47 +0800
committerKevin Wolf <kwolf@redhat.com>2013-11-14 13:09:07 +0100
commit968854c8a106243eae7a68394ce1cb85dc138837 (patch)
tree81b295358ac5d9f05554a4a9e650d14b7dcf2fb0 /vl.c
parentd48adddac7d1839c8d734506aba6fd39fb9c3834 (diff)
downloadqemu-968854c8a106243eae7a68394ce1cb85dc138837.zip
qemu-968854c8a106243eae7a68394ce1cb85dc138837.tar.gz
qemu-968854c8a106243eae7a68394ce1cb85dc138837.tar.bz2
qmp: access the local QemuOptsLists for drive option
Currently we have three QemuOptsList (qemu_common_drive_opts, qemu_legacy_drive_opts, and qemu_drive_opts), only qemu_drive_opts is added to vm_config_groups[]. This patch changes query-command-line-options to access three local QemuOptsLists for drive option, and merge the description items together. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 4ad15b8..a585257 100644
--- a/vl.c
+++ b/vl.c
@@ -2867,6 +2867,9 @@ int main(int argc, char **argv, char **envp)
module_call_init(MODULE_INIT_QOM);
qemu_add_opts(&qemu_drive_opts);
+ qemu_add_drive_opts(&qemu_legacy_drive_opts);
+ qemu_add_drive_opts(&qemu_common_drive_opts);
+ qemu_add_drive_opts(&qemu_drive_opts);
qemu_add_opts(&qemu_chardev_opts);
qemu_add_opts(&qemu_device_opts);
qemu_add_opts(&qemu_netdev_opts);