]> git.proxmox.com Git - qemu.git/blobdiff - qemu-config.c
vl: add -object option to create QOM objects from the command line
[qemu.git] / qemu-config.c
index 3154cac10fdc7c203cc188f1003f73fc5a199610..10d1ba4176a444b5bc75d551ad31dfa8d5c552cb 100644 (file)
@@ -682,6 +682,15 @@ static QemuOptsList qemu_add_fd_opts = {
     },
 };
 
+static QemuOptsList qemu_object_opts = {
+    .name = "object",
+    .implied_opt_name = "qom-type",
+    .head = QTAILQ_HEAD_INITIALIZER(qemu_object_opts.head),
+    .desc = {
+        { }
+    },
+};
+
 static QemuOptsList *vm_config_groups[32] = {
     &qemu_drive_opts,
     &qemu_chardev_opts,
@@ -699,6 +708,7 @@ static QemuOptsList *vm_config_groups[32] = {
     &qemu_iscsi_opts,
     &qemu_sandbox_opts,
     &qemu_add_fd_opts,
+    &qemu_object_opts,
     NULL,
 };