|
@@ -1813,7 +1813,7 @@ QemuOpts *drive_add(const char *file, const char *fmt, ...)
|
|
vsnprintf(optstr, sizeof(optstr), fmt, ap);
|
|
vsnprintf(optstr, sizeof(optstr), fmt, ap);
|
|
va_end(ap);
|
|
va_end(ap);
|
|
|
|
|
|
- opts = qemu_opts_parse(&qemu_drive_opts, optstr, NULL);
|
|
|
|
|
|
+ opts = qemu_opts_parse(&qemu_drive_opts, optstr, 0);
|
|
if (!opts) {
|
|
if (!opts) {
|
|
fprintf(stderr, "%s: huh? duplicate? (%s)\n",
|
|
fprintf(stderr, "%s: huh? duplicate? (%s)\n",
|
|
__FUNCTION__, optstr);
|
|
__FUNCTION__, optstr);
|
|
@@ -4370,7 +4370,7 @@ static int balloon_parse(const char *arg)
|
|
if (!strncmp(arg, "virtio", 6)) {
|
|
if (!strncmp(arg, "virtio", 6)) {
|
|
if (arg[6] == ',') {
|
|
if (arg[6] == ',') {
|
|
/* have params -> parse them */
|
|
/* have params -> parse them */
|
|
- opts = qemu_opts_parse(&qemu_device_opts, arg+7, NULL);
|
|
|
|
|
|
+ opts = qemu_opts_parse(&qemu_device_opts, arg+7, 0);
|
|
if (!opts)
|
|
if (!opts)
|
|
return -1;
|
|
return -1;
|
|
} else {
|
|
} else {
|
|
@@ -5365,7 +5365,7 @@ int main(int argc, char **argv, char **envp)
|
|
default_monitor = 0;
|
|
default_monitor = 0;
|
|
break;
|
|
break;
|
|
case QEMU_OPTION_mon:
|
|
case QEMU_OPTION_mon:
|
|
- opts = qemu_opts_parse(&qemu_mon_opts, optarg, "chardev");
|
|
|
|
|
|
+ opts = qemu_opts_parse(&qemu_mon_opts, optarg, 1);
|
|
if (!opts) {
|
|
if (!opts) {
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
exit(1);
|
|
exit(1);
|
|
@@ -5373,7 +5373,7 @@ int main(int argc, char **argv, char **envp)
|
|
default_monitor = 0;
|
|
default_monitor = 0;
|
|
break;
|
|
break;
|
|
case QEMU_OPTION_chardev:
|
|
case QEMU_OPTION_chardev:
|
|
- opts = qemu_opts_parse(&qemu_chardev_opts, optarg, "backend");
|
|
|
|
|
|
+ opts = qemu_opts_parse(&qemu_chardev_opts, optarg, 1);
|
|
if (!opts) {
|
|
if (!opts) {
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
exit(1);
|
|
exit(1);
|
|
@@ -5467,7 +5467,7 @@ int main(int argc, char **argv, char **envp)
|
|
add_device_config(DEV_USB, optarg);
|
|
add_device_config(DEV_USB, optarg);
|
|
break;
|
|
break;
|
|
case QEMU_OPTION_device:
|
|
case QEMU_OPTION_device:
|
|
- if (!qemu_opts_parse(&qemu_device_opts, optarg, "driver")) {
|
|
|
|
|
|
+ if (!qemu_opts_parse(&qemu_device_opts, optarg, 1)) {
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -5576,7 +5576,7 @@ int main(int argc, char **argv, char **envp)
|
|
configure_rtc_date_offset(optarg, 1);
|
|
configure_rtc_date_offset(optarg, 1);
|
|
break;
|
|
break;
|
|
case QEMU_OPTION_rtc:
|
|
case QEMU_OPTION_rtc:
|
|
- opts = qemu_opts_parse(&qemu_rtc_opts, optarg, NULL);
|
|
|
|
|
|
+ opts = qemu_opts_parse(&qemu_rtc_opts, optarg, 0);
|
|
if (!opts) {
|
|
if (!opts) {
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
fprintf(stderr, "parse error: %s\n", optarg);
|
|
exit(1);
|
|
exit(1);
|