aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/qemu-config.c b/qemu-config.c
index cfb1d2982..a8ce6e716 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -156,6 +156,18 @@ QemuOptsList qemu_device_opts = {
},
};
+QemuOptsList qemu_net_opts = {
+ .name = "net",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_net_opts.head),
+ .desc = {
+ /*
+ * no elements => accept any params
+ * validation will happen later
+ */
+ { /* end of list */ }
+ },
+};
+
QemuOptsList qemu_rtc_opts = {
.name = "rtc",
.head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
@@ -180,6 +192,8 @@ static QemuOptsList *lists[] = {
&qemu_drive_opts,
&qemu_chardev_opts,
&qemu_device_opts,
+ &qemu_net_opts,
+ &qemu_rtc_opts,
NULL,
};
@@ -212,8 +226,6 @@ int qemu_set_option(const char *str)
}
if (qemu_opt_set(opts, arg, str+offset+1) == -1) {
- qemu_error("failed to set \"%s\" for %s \"%s\"\n",
- arg, lists[i]->name, id);
return -1;
}
return 0;